4 ms·
Is there a reason why you created this rather than using our official RTK Query data fetching layer? It's already included in Redux Toolkit, and it's our recomm
by acemarke 3y ago
Is there a reason why you created this rather than using our official RTK Query data fetching layer? It's already included in Redux Toolkit, and it's our recommended approach for fetching data in Redux apps:
- https://redux.js.org/tutorials/essentials/part-7-rtk-query-basics https://redux.js.org/tutorials/essentials/part-7-rtk-query-b...
- https://redux-toolkit.js.org/rtk-query/overview https://redux-toolkit.js.org/rtk-query/overview
also, fwiw, we've been actively advising _against_ using sagas for years, and _especially_ for data fetching use cases:
- https://redux.js.org/usage/side-effects-approaches#recommendations https://redux.js.org/usage/side-effects-approaches#recommend...