Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Redux with sagas is a great hint to a solution that is only a small tweak of what you currently do. You need middlewares (that's what makes sagas possible)! Contrary to what some may suggest, you actually don't need to use external state management to get middlewares, as you can integrate an enhancer to useReducer itself. And you should be aware that moving off-react state management "updates triggered by external stores are always synchronous" meaning you're losing startTransition powers.
The control flow can be pretty straightforward once you have middleware integration; which you can see with async state management becoming as simple as a one-liner
Related posts
- Nextjs 13 server components discussion
- Why are data fetching libraries in the view layer so mainstream in React apps?
- (React-Query ) Re-declaring useQuery() and all its options in multiple components?
- SWR vs React Query? Which one do you like to use with Next.js?
- I made a asynchronous data framework - tell me what you think!