(1) David K 🎹 on X: "If you have React code that looks like this, please: 1. Delete it 2. Use React Query (@tanstack/react-query) instead It handles the caching, state transitions, and edge-cases that you forgot to handle. Fetching data is not what useEffect is for. https://t.co/dRofNxzinJ" / X
1. Delete it
2. Use React Query (@tanstack/react-query) instead
It handles the caching, state transitions, and edge-cases that you forgot to handle.
Fetching data is not what useEffect is for.
— David K 🎹 (@DavidKPiano)