()
| 56 | }) |
| 57 | |
| 58 | export default function App() { |
| 59 | return ( |
| 60 | <PersistQueryClientProvider |
| 61 | client={queryClient} |
| 62 | persistOptions={{ persister }} |
| 63 | onSuccess={() => { |
| 64 | // resume mutations after initial restore from localStorage was successful |
| 65 | queryClient.resumePausedMutations().then(() => { |
| 66 | queryClient.invalidateQueries() |
| 67 | }) |
| 68 | }} |
| 69 | > |
| 70 | <Movies /> |
| 71 | <ReactQueryDevtools initialIsOpen /> |
| 72 | </PersistQueryClientProvider> |
| 73 | ) |
| 74 | } |
| 75 | |
| 76 | function Movies() { |
| 77 | const isRestoring = useIsRestoring() |
nothing calls this directly
no test coverage detected