Post
The lint rule to avoid direct setState in useEffect allows this pattern: eslint-react.xyz/docs/rules/h...
eslint-react.xyzeslint-reactESLint React - A series of composable ESLint plugins for libraries and frameworks that use React as a UI runtime.
But also, there's this lib called react-queries or something. Not sure if it's any good and it's also quite heavy for doing a task as simple as data fetching but maybe check it out idk 🤷♂️
0 reposts43 likes