Skip to content

[App router] Always reload a page when clicking on a <Link> #65487

Answered by icyJoseph
ZoranRavic asked this question in Help
Discussion options

You must be logged in to vote

Here are the docs:

And to opt-out, https://nextjs.org/docs/app/building-your-application/caching#opting-out-3

You'd need an onClick handler on the Link, which calls router.refresh() I guess. For people without JS, it doesn't matter because the Link, would just work as a regular a.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ZoranRavic
Comment options

@icyJoseph
Comment options

@ZoranRavic
Comment options

Answer selected by ZoranRavic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants