From 5f10351dae98eb71b9deeb39b2e83be3f734ef48 Mon Sep 17 00:00:00 2001 From: phamhieu Date: Tue, 26 Apr 2022 16:47:10 +0700 Subject: [PATCH] fix: no need page reload on project building/restoring completes --- studio/pages/project/[ref]/building.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/studio/pages/project/[ref]/building.tsx b/studio/pages/project/[ref]/building.tsx index 3215ec8e6a3..87f7a729b3b 100644 --- a/studio/pages/project/[ref]/building.tsx +++ b/studio/pages/project/[ref]/building.tsx @@ -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 }