-
-
Notifications
You must be signed in to change notification settings - Fork 603
React-Query: Add getKey method #1899
New issue
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
Conversation
|
|
Hi @onionhammer and thanks for willing to contribute! Unfortunately, it seems that your PR as the same goal as the already opened https://github.com/openapi-ts/openapi-typescript/pull/1858/files wich as already been discussed in previous issues. If it is the case, feel free to leave a thumbs up on the PR so we know that it is a requested feature and close this one. |
|
@kerwanp unless I'm missing it, I dont see a mechanism for getting a key from the PR you've referenced |
The queryOptions method allows you to generate the queryOptions. So you can use it to generate the queryKey: |
|
Oh ok, that works |
Changes
Adds support for getting a react query key in the same format this library generates the keys
Fixes #1898
How to Review
How can a reviewer review your changes? What should be kept in mind for this review?
Checklist
docs/updated (if necessary)pnpm run update:examplesrun (only applicable for openapi-typescript)