mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 11:25:06 +03:00
fix: no need page reload on project building/restoring completes
This commit is contained in:
1 parent
8a1f94168a
commit
5f10351dae
1 file changed
+6
-1
@@ -20,7 +20,12 @@ const RedirectToDashboard: FC = () => {
|
||||
// Use redirect to reload store data properly after project has been
|
||||
// been created or unpaused, this is necessarily especially for unpausing
|
||||
// so that the dashboard fetches the updated connection strings
|
||||
window.location.replace(`/project/${ref}`)
|
||||
// window.location.replace(`/project/${ref}`)
|
||||
|
||||
// TODO: for experiment only
|
||||
// Cos we already pulling new connectionString after project building/restoring
|
||||
// just use normal router.push is enough
|
||||
router.push(`/project/${ref}`)
|
||||
}, [])
|
||||
return null
|
||||
}
|
||||
Reference in new issue
Block a user