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

[BUG] queryOptions param in useShow not passed in correctly to useQuery #3072

Closed
samelhusseini opened this issue Nov 27, 2022 · 0 comments · Fixed by #3073
Closed

[BUG] queryOptions param in useShow not passed in correctly to useQuery #3072

samelhusseini opened this issue Nov 27, 2022 · 0 comments · Fixed by #3073
Labels
bug Something isn't working

Comments

@samelhusseini
Copy link
Contributor

Describe the bug

queryOptions param introduced in #3030 not passed on correctly to useOne hook from useShow hook.

Steps To Reproduce

useShow<IUser>({
   resource: "users",
   id: userId,
   queryOptions: {
        initialData,
    },
});

Expected behavior

The queryOptions are passed through to the useOne hook and then in turn to the useQuery...

Screenshot

No response

Desktop

No response

Mobile

No response

Additional Context

No response

@samelhusseini samelhusseini added the bug Something isn't working label Nov 27, 2022
@samelhusseini samelhusseini changed the title [BUG] [BUG] queryOptions param in useShow not passed in correctly to useQuery Nov 27, 2022
samelhusseini added a commit to samelhusseini/refine that referenced this issue Nov 28, 2022
omeraplak added a commit that referenced this issue Nov 28, 2022
* Pass queryOptions correctly through useShow hook

Fixes #3072

* chore: add changeset

Co-authored-by: Ömer Faruk APLAK <omer@refine.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant