3 ms·
I have used react-query which does the same thing. The server responses can be cached like a redux store. The same query can then be reused elsewhere. You have
by hesarenu 6y ago
I have used react-query which does the same thing. The server responses can be cached like a redux store. The same query can then be reused elsewhere. You have setting to not cache at all, cache for some time or cache infinity.
I have used it on redux project and replaced many with react-query. It does feel better for server data. Not much boilerplate.