Support Query persistence (via tanstack's persistQueryClient)
Author: matijaSosCreated Oct 1, 2026Updated Oct 1, 2026
tanstack-query supports persisting the query cache to localStorage (persistQueryClient) and rehydrating it on load. we own the QueryClient + provider, so users can't wire it themselves - which is fine, feels like part of the managed experience, but means if we ever want it we'd have to expose/support it ourselves.
wondering how interesting it is. from what i saw it's kinda the gateway to local-first (instant stale data + background sync, linear-style), and it'd also enable "optimistic auth" (seed useAuth from the cache so cold loads resolve instantly, no splash).
mostly noting it down to gauge interest + have somewhere to refer back to. did it ever come up in any discussions/epics?
Source: wasp-lang/wasp