You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The functionKey generated is described as The functionKey is [method, path, params].
But the real 3rd argument is object with params property (so closer to options than params)
To correctly invalidate/update cache, you need to wrap it inside the object queryClient.setQueryData(["get", GET_PROJECT_PATH, { params: { path: { id: Number(data.id) } } }], data)
The text was updated successfully, but these errors were encountered:
On official documentation https://openapi-ts.dev/openapi-react-query/use-query
The functionKey generated is described as
The functionKey is [method, path, params].
But the real 3rd argument is object with params property (so closer to
options
thanparams
)To correctly invalidate/update cache, you need to wrap it inside the object
queryClient.setQueryData(["get", GET_PROJECT_PATH, { params: { path: { id: Number(data.id) } } }], data)
The text was updated successfully, but these errors were encountered: