How do I access the state: data
of navigate(...)
from the destination route component?
#1335
-
As title. From the documentation, it seems that I can set
|
Beta Was this translation helpful? Give feedback.
Answered by
SeanCassiere
Mar 26, 2024
Replies: 1 comment 2 replies
-
You can do that with useRouterState hook.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@nyngwang
The correct way to access the state field from the Router's state is detailed here in this discussion.