import { useParams } from 'common' import { Loader2 } from 'lucide-react' import { useProjectDetailQuery } from '@/data/projects/project-detail-query' import { PROJECT_STATUS } from '@/lib/constants' export const ResizingState = () => { const { ref } = useParams() useProjectDetailQuery( { ref }, { // setting a refetch interval here will cause the `useSelectedProject()` in `ProjectLayout.tsx` to // rerender every 4 seconds while the project is resizing. Once resizing is complete, it will // no longer show this state. refetchInterval: (query) => { const data = query.state.data return data?.status !== PROJECT_STATUS.ACTIVE_HEALTHY ? 4000 : false }, } ) return (
Resizing Project Compute size
Your project is being restarted to apply compute size changes.
This can take a few minutes. Project will be offline while it is being restarted.