You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To speed up the feel of the site I'm rendering a version of the page being navigated to OnRouteChangeStart with loading skeletons, which is working quite nicely.
The only issue is that the visible URL doesn't update until the route change is complete - so it appears to lag behind the page change.
Has anyone found a workaround for this ? I've been trying with window.history.pushState(null, null, path) which works but breaks the history. Can I use it in conjunction with Router.replace or Route.beforePopState to force the URL change at the start of the transition but maintain the integrity of the history stack ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using getInitialProps for SSR
To speed up the feel of the site I'm rendering a version of the page being navigated to OnRouteChangeStart with loading skeletons, which is working quite nicely.
The only issue is that the visible URL doesn't update until the route change is complete - so it appears to lag behind the page change.
Has anyone found a workaround for this ? I've been trying with window.history.pushState(null, null, path) which works but breaks the history. Can I use it in conjunction with Router.replace or Route.beforePopState to force the URL change at the start of the transition but maintain the integrity of the history stack ?
Beta Was this translation helpful? Give feedback.
All reactions