TanStackT
TanStack6mo ago
2 replies
clean-aquamarine

Query cache persist when navigating with Tanstack navigation?

I have my query client provider around the router provider
    <QueryClientProvider client={queryClient}>
      <RouterProvider router={router} />
    </QueryClientProvider>


Then i have it so when you create create an item it sets the item data with the returned value. Then it navigates to the actual page for the item. But right now it's refetching the item.
Was this page helpful?