next/link
with "optimistic" route changing
#32277
jonahallibone
started this conversation in
Ideas
Replies: 2 comments
-
Hello, +1. I am working on my website using Nextjs and I also see that the current page is not updated until the new page has been fully SSRed with all the data and given to the client. Adding On the other hand this feature seems to be so straightforward I think I am missing something... Anybody help please? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Quite puzzled on what to do here. My website has animations to hide the navigation delay, but now i can't leverage it |
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.
-
Hi all -- I wanted to add a suggestion for the operation of
next/link
and the generalnext/router
. This may not be a compatible change for reasons I am not privy too, but nonetheless I wanted to share this idea.Currently the behavior of
next/link
is as follows:<Link />
on the page fetches SSG'd pages when they enter the viewport, or on hoverThe UX with this, to me, seems to break convention
fallback: blocking
can take quite a while to navigate to. WithoutNProgress
or the like, there's not indication to the user that a link was clicked and information is being fetched<Link />
that fires a shallow change withuseRouter
on click, which doesn't seem idealMy suggestion is to have an option to allow an "optimistic" route change to be pushed to the history stack, regardless of page loaded status. This would allow for a routing experience that emulate most websites users are most used to interacting with, and ones I think many developers look to emulate.
Let me know your thoughts!
Beta Was this translation helpful? Give feedback.
All reactions