Open rerpha opened 3 months ago
interesting notes here: https://redux.js.org/usage/nextjs#overall-recommendations
For App Router applications we recommend that you should:
- only use Redux for globally shared, mutable data
- use a combination of Next.js state (search params, route parameters, form state, etc.), React context and React hooks for all other state management.
socket.io (we're not actually using this, though we probably could use it for the client part instead of react-use-websocket) seems to think using a useeffect is still the best way of using a ws https://socket.io/how-to/use-with-react
i'm not sure how middleware works with our gh-pages instance either - worth considering
we should split up InstrumentData to use react-redux and pass just the data into the react components.