TanStackT
TanStack3y ago
4 replies
living-lavender

Hi all, I'm getting this error when I use QueryClient set/getQueryData:

can't assign to property "exact" on "workspaces": not an object
this is my code
queryClient.setQueryData('workspaces', (oldData) => {
      return [...oldData, data.data]
    });
Was this page helpful?