Replies: 1 comment
-
next.js/packages/next/src/client/components/app-router.tsx Lines 307 to 311 in 3dbb85a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Loading state when changing pages or url.
Background
There is no way to track loading state of url. as it takes sometime to update after calling
router.push
.loading.tsx
convention is not useful when you are change content based on query paramsProposal
We are already using
startTransition
to update the url state. instead we should useuseTransition
and expose pending state in router instance returned byuseRouter
. That way users can show loader if meanwhile the router fetches rsc payload.Beta Was this translation helpful? Give feedback.
All reactions