Skip to content

Commit

Permalink
fix: no need page reload on project building/restoring completes
Browse files Browse the repository at this point in the history
  • Loading branch information
phamhieu authored and joshenlim committed Apr 27, 2022
1 parent 8a1f941 commit 5f10351
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion studio/pages/project/[ref]/building.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 5f10351

Please sign in to comment.