with RouterProvider in Next.js, do i need to wrap navigate in startTransition?
#5708
Unanswered
stefanprobst
asked this question in
Q&A
Replies: 1 comment
-
|
See related discussion for more info on prefetch #5476 (comment) I'm not sure about the |
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.
-
i am using
RouterProviderin a next.js app, and i am not sure if the providednavigatefunction (i.e.router.push) should be wrapped instartTransition?i had a look what the
next/linkcomponent does internally, and afaiu it does wraprouter.push/replacewithstartTransitionwhen using the app router, see: https://github.com/vercel/next.js/blob/canary/packages/next/src/client/link.tsx#L221-L242(also not sure if i need to do anything extra for prefetch-on-hover to work?)
thanks!
Beta Was this translation helpful? Give feedback.
All reactions