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

fix(useShow): Pass queryOptions correctly through useShow hook #3073

Merged
merged 2 commits into from
Nov 28, 2022

Conversation

samelhusseini
Copy link
Contributor

A recent PR #3030 added a feature to accept queryOptions as a parameter to the useShow hook. It however was not passed in correctly through the useShow hook to the useOne hook (spread in the useOne props bag instead of the queryOptions bag, see further details in #3072.

Change fixes the bug.

Test plan (required)

Tests pass.
Verified locally that the queryOptions are passed through to useOne from useShow.

Closing issues

closes #3072

Self Check before Merge

Please check all items below before review.

  • Corresponding issues are created/updated or not needed
  • Docs are updated/provided or not needed
  • Examples are updated/provided or not needed
  • TypeScript definitions are updated/provided or not needed
  • Tests are updated/provided or not needed
  • Changesets are provided or not needed

@changeset-bot
Copy link

changeset-bot bot commented Nov 28, 2022

🦋 Changeset detected

Latest commit: dc80828

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Nov 28, 2022

Deploy Preview for refine-doc-live-previews ready!

Name Link
🔨 Latest commit dc80828
🔍 Latest deploy log https://app.netlify.com/sites/refine-doc-live-previews/deploys/638457cf4e4f0500096ab093
😎 Deploy Preview https://deploy-preview-3073--refine-doc-live-previews.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@omeraplak omeraplak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🎉

@samelhusseini samelhusseini changed the title Pass queryOptions correctly through useShow hook fix(useShow): Pass queryOptions correctly through useShow hook Nov 28, 2022
@omeraplak omeraplak merged commit 38dfde0 into refinedev:next Nov 28, 2022
@samelhusseini samelhusseini deleted the patch-1 branch November 28, 2022 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] queryOptions param in useShow not passed in correctly to useQuery
3 participants