-
Notifications
You must be signed in to change notification settings - Fork 27.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The inconsistency of Router between V1 and V2 #693
Comments
This is something we need to investigate. |
@arunoda Nice. FWIW, I have forked a [email protected] version of nextgram at https://github.com/Huxpro/nextgram/tree/next-2.0. Which have updated |
Okay. Here's what going on here. By going through the nextgram, it seems like we need to bring back the functionality of that API again. But, I don't know whether it's a good idea to bring it back? Basically, here's what's happening in that API.
I smell bad for such an API. Let's see how to fix this in a different way. |
Okay, here next 2 style version of nextgram. Live: https://nextgram2.now.sh/ |
@arunoda I think it should keep the original behavior which shows a modal over the list when you click a link, but doesn't show the list on SSR. |
@nkzawa okay. That's possible. Let's do that. |
Done. |
@Huxpro could you send me a PR with the updated |
@Huxpro can you confirm the API now behaves as intended? |
Please check vercel/nextgram#9 |
Thx guys I found @nkzawa have updated so I just removed all react imports to make it more 'next smell' since react is a implementation details, and replaced imperatively router calls with BTW, I am still concerning about how to do nestedly or partially re-rendering between Page to Page in Next. Well, that is an enhancement and not related to this issue. |
Yep |
BTW: I need to thank @nkzawa for showing me this simplest solution. I was using a custom server, but it's not needed in this way. |
TL;DR. Next V2 will switch entire page instead of re-rendering current page when routeChange, which is inconsistent with Next V1.
I have elaborated this issue under vercel/nextgram#8.
The text was updated successfully, but these errors were encountered: