3 ms·
It doesn't matter for 99.9% of use cases how long React caches it if your using it to debounce read requests.
by Rapzid 2y ago
It doesn't matter for 99.9% of use cases how long React caches it if your using it to debounce read requests.
- madeofpalk 2y agoSure, if you're using it to memoize a calculation. But triggering an api request having side effects is 100% incorrect.
- Rapzid 2y agoWhy?