Where to Keep State
Kinds of state and where each belongs, client vs server state, when a store is needed, Zustand
Server State: TanStack Query
Server state with TanStack Query, query keys, staleTime and gcTime, mutations, invalidation and optimistic updates
Redux
Store, actions and reducers, Redux Toolkit slices, React Redux hooks and memoized selectors