Repository navigation
Replies: 2 comments 1 reply
|
Hello ! Did you try the https://nextjs.org/docs/api-reference/next/link and https://nextjs.org/docs/api-reference/next/router#routerpush |
1 reply
|
I've also been looking for this an have a proposal/RFC open: #29117 |
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 hope I can use SSR for first screen of my app. And when changing pages, it can work as a SPA that will responsive user interactive immediately. And I can load data manually from component. It just need call
getServerSidePropsat client for my cases.I searched all around Google and GitHub but not found a good solution.Does anyone else have similar needs and how did you achieve it? Even if a hack way.
I learned the code of Next and I found it call server side in
getRouteInfomethod atpackages/next/shared/lib/router/router.ts. Butnext/routerexports a plain object that cannot access any private method on router. So I can only modify the code to achieve it?https://github.com/vercel/next.js/blob/canary/packages/next/shared/lib/router/router.ts#L1401-L1418
All reactions