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.
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.