Why providing queryClient as context
I have a question about the use of queryClient and providing it to the
I wonder why should a user do that? The entire app inclusively the router can use the queryClient directly?
Is it not doubled to provide the context of queryClient in both, the
createRouter context.I wonder why should a user do that? The entire app inclusively the router can use the queryClient directly?
Is it not doubled to provide the context of queryClient in both, the
QueryClientProvider and additional inside the router? What are the benefits of not using queryClient directly inside of layouts/routes and useQueryClient inside components?