Skip to content

Prevent Link from using cached state prop during page refresh? #25689

Answered by herecydev
JordanHoffman asked this question in Help
Discussion options

You must be logged in to vote

This is actually a browser thing. State is stored via the history api. If you don't want to store state this way, I would recommend using state in react. You could use wrapRootElement so it spans across multiple pages and you can track the state there. When refreshing the browser will reload the react app, therefore state will be lost.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JordanHoffman
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
Converted from issue

This discussion was converted from issue #25689 on October 19, 2020 09:04.