feat(frontend): persist the query cache and restore the signed-in session offline

Allowlisted query data is persisted to localStorage for 24h, scoped to the origin and user and cleared on sign-out. The last validated user is remembered so a cold start opens with cached lists when the session check fails on the network, while a 401 or signed-out response still signs out. Lists keep cached data when a refetch fails.
This commit is contained in:
Chris Scott committed 2026-10-24 19:24:26 -04:00
1 parent 881529728d
commit b6c21de0bb
28 files changed
+1325 -102

No files matched your search

+1
View File
@@ -191,6 +191,7 @@ export const useSessionsAcrossDirectories = (
return {
data,
isLoading: query.isLoading,
isPending: query.isPending && uniqueDirectories.length > 0,
isPlaceholderData: query.isPlaceholderData,
isError: query.isError,
fetchNextPage: query.fetchNextPage,