navigate("/profile-two", { state: data });
so here if I want to access the state in all the subroutes of "/profile-two", how can I do that?
like I want to access the state when I am on "/profile-two?activeTab=1".
you talk about another subject , when you want to access a state from anywhere you have to implement a state management (redux for example or simply use useContext hook). the concept here is only how to send state from a route to another.
Yes, I totally agree with you.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
navigate("/profile-two", { state: data });
so here if I want to access the state in all the subroutes of "/profile-two", how can I do that?
like I want to access the state when I am on "/profile-two?activeTab=1".
you talk about another subject , when you want to access a state from anywhere you have to implement a state management (redux for example or simply use useContext hook).
the concept here is only how to send state from a route to another.
Yes, I totally agree with you.