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
Any attempt to modify query with key with multiple params (such as queryKey: ['todo', 'id-12344']) fails with error "Query not found"
queryKey: ['todo', 'id-12344']
Not sure in which lib the fix should be, I see https://github.com/LovesWorking/react-query-external-dash/blob/main/src/_components/devtools/QueryActions.tsx#L44 uses toString on the queryKey, while https://github.com/LovesWorking/react-query-external-sync/blob/main/src/_util/handleCommands.ts#L23 tries to compare the first item of query key with the stringified queryKey, which does not work. There it should probably also call toString on the queryKey.
toString
The text was updated successfully, but these errors were encountered:
Great point. When I get some time next week I'll tackle the open issues. Thanks for pointing out the lines that may be causing this.
Sorry, something went wrong.
FWIW this also happens if the second param is an object like queryKey: ['todo', { id: 12344 }]
queryKey: ['todo', { id: 12344 }]
Successfully merging a pull request may close this issue.
Any attempt to modify query with key with multiple params (such as
queryKey: ['todo', 'id-12344']
) fails with error "Query not found"Not sure in which lib the fix should be, I see
https://github.com/LovesWorking/react-query-external-dash/blob/main/src/_components/devtools/QueryActions.tsx#L44
uses
toString
on the queryKey, whilehttps://github.com/LovesWorking/react-query-external-sync/blob/main/src/_util/handleCommands.ts#L23
tries to compare the first item of query key with the stringified queryKey, which does not work. There it should probably also call
toString
on the queryKey.The text was updated successfully, but these errors were encountered: