-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
Milestone
Description
Related:
One approach would be to have another async function that runs before the queryFn (and maybe one that runs after it ?) that would skip calling the queryFn if something other than undefined was returned. Here, people could read from an async storage (and potentially write to it in the "after" hook). The query could also stay in fetchStatus: 'idle' because we haven't triggered the queryFn yet.
Combined with the possibility to customize the in-memory cache (see #4687), people would be free to keep the size of the in-memory cache small.
kamui545, scarlac, raulriera, henrymoulton, frederikhors and 1 morescarlac, henrymoulton, noskovvkirill, frederikhors, chrisl8888 and 1 morefrederikhors and omerman