How do you use the state property of navigation? #2324
Replies: 1 comment
-
This has been answered here: #1342 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The
ToOptions
interface is as followsI want to pass a list of 100+ ids to a new route. I'd prefer to do this through my router since it's cleaner but it isn't feasible to put them in the search string. The
state
property seems ideal for this but I can't find any other documentation on it other than in this interface. If this isn't the way to go, is there a better way? I'd prefer to avoid temporarily stashing it in some non-router global state to bridge it between the new routes since that feels like a hacky work aroundBeta Was this translation helpful? Give feedback.
All reactions