()
| 4966 | // from both the live collection and the persisted store. |
| 4967 | const queryKey = [`reload-insert-cleanup`] |
| 4968 | const makeQueryClient = () => |
| 4969 | new QueryClient({ |
| 4970 | defaultOptions: { |
| 4971 | queries: { staleTime: 0, gcTime: 5 * 60 * 1000, retry: false }, |
| 4972 | }, |
| 4973 | }) |
| 4974 | |
| 4975 | // The shared on-device store, surviving across the two sessions. |
| 4976 | const adapter = createPersistedQueryAdapter<CategorisedItem>({}) |