Skip to content
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

[Doc] Fix <ReferenceInput enableGetChoices> example #10543

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

slax57
Copy link
Contributor

@slax57 slax57 commented Feb 24, 2025

Problem

<ReferenceInput enableGetChoices> example returns undefined when q is undefined, which will still fire the query (because enable: undefined) does not disable the query in react-query. It has to return false instead.

Solution

Fix the example to return a boolean all the time.

Additional Checks

  • The PR targets master for a bugfix, or next for a feature
  • The documentation is up to date

@fzaninotto fzaninotto merged commit a806367 into master Feb 24, 2025
2 checks passed
@fzaninotto fzaninotto deleted the doc-ReferenceInput-enableGetChoices branch February 24, 2025 08:55
@fzaninotto fzaninotto added this to the 5.6.2 milestone Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants