use options
as history.state
in next router.
#15048
Unanswered
pratheekhegde
asked this question in
Help
Replies: 2 comments 1 reply
-
I don't know if this is safe, but I came to ask the same question. Is there any official ability to store application data in the history state API of the browser? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Is it safe to use
options
inRouter.push(url, as, options)
to pass state between routes? Currently I'm migrating a project toNext.js
and it has references tohistory.pushState(state, title[, url])
. Apparently the docs doesn't explicitly say this, so is it safe to use this approach?Beta Was this translation helpful? Give feedback.
All reactions