Created by: fkling
We are evaluting how to store shared application state and decided to use Zustand with a single global store via React context. This PR migrates the existing query state store to a global one.
Please consider this PR as an initial/suggested attempt. Everything is up for discussion. I just tried to find a solution that works.
With this approach...
useNavbarQueryState
API, primarily to show that components don't have to be affected if the actual storage implementation changes. I think this is a good thing but maybe this defeats the whole purpose of having a global store.useGlobalStore
everywhere.