We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
types provided from createProtobufSafeUpdater are incompatible with actual data from infinite query
createProtobufSafeUpdater says it will be QUERY_RESPONSE_TYPE but in reality the type is InfiniteData<QUERY_RESPONSE_TYPE>
QUERY_RESPONSE_TYPE
InfiniteData<QUERY_RESPONSE_TYPE>
const queryClient = useQueryClient(); const mutation = useMutation(MUTATION_DESCRIPTOR, { onSuccess() { const updater = createProtobufSafeUpdater(QUERY_DESCRIPTOR, (prevData?: InfiniteData<QUERY_RESPONSE_TYPE>) => { return prevData }); queryClient.setQueriesData({ queryKey: QUERY_KEY }, updater); }, });
Is there a way to provide correct types/arguments?
The text was updated successfully, but these errors were encountered:
Yes this seems to be a gap in our API. Will need to investigate to see if there are any sharp corners to this one.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
types provided from createProtobufSafeUpdater are incompatible with actual data from infinite query
createProtobufSafeUpdater says it will be
QUERY_RESPONSE_TYPE
but in reality the type isInfiniteData<QUERY_RESPONSE_TYPE>
Is there a way to provide correct types/arguments?
The text was updated successfully, but these errors were encountered: