Hello all! Trying to wrap my head around the mental model with respect to state management in a remix app and could use some feedback.
If I have a dropdown as part of a side navigation that has its values provided via a loader on the root route, but then allow the current selection to be managed via the user on the client (react context is used for the selected state and the provider is wrapping at the layout component in the root), how do I ensure this selection is maintained on any route change?
Currently the context value is being reset on any route change. Would I need to use a cookie to persist the selection across route changes?