Problem: I'm working in an app that uses both Redux and React Query


Problem: I'm working in an app that uses both Redux and React Query. React Query responses are copied into the Redux store. The app is buggy because it has 2 sources of state on every page: Redux and React Query. It reads and writes to these 2 spots inconsistently.

Solution: Pick *one* global state management system.

Store each piece of data in *one* spot.

View original on X