TanStackT
TanStack2y ago
5 replies
progressive-amaranth

"null" as queryKey

Hi all,
We are using createQueryKeys(...) from the query-key-factory so I believe technically, having queryKey: null works. Is it still best practice to explicitly list a queryKey? What would be the argument to use something other than null if everything is being passed through the factory?
Was this page helpful?