3 ms·
FYI, we recommend that most folks should not write promise management, data fetching, or loading status tracking code directly If you're using just React, use
by acemarke 4y ago
FYI, we recommend that most folks should not write promise management, data fetching, or loading status tracking code directly
If you're using just React, use React Query or something like `react-async`.
If you're using Redux, use the "RTK Query" data fetching and caching API in our official Redux Toolkit package:
- https://redux.js.org/usage/side-effects-approaches https://redux.js.org/usage/side-effects-approaches