Skip to content

Commit

Permalink
fix(useShow): Pass queryOptions correctly through useShow hook (#3073)
Browse files Browse the repository at this point in the history
* Pass queryOptions correctly through useShow hook

Fixes #3072

* chore: add changeset

Co-authored-by: Ömer Faruk APLAK <omer@refine.dev>
  • Loading branch information
samelhusseini and omeraplak committed Nov 28, 2022
1 parent e2e88e5 commit 38dfde0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/short-mice-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pankod/refine-core": patch
---

Fixed `queryOptions` parameter of `useShow` hook
2 changes: 1 addition & 1 deletion packages/core/src/hooks/show/useShow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ export const useShow = <
id: showId ?? "",
queryOptions: {
enabled: showId !== undefined,
...queryOptions,
},
successNotification,
errorNotification,
metaData,
liveMode,
onLiveEvent,
dataProviderName,
...queryOptions,
});

return {
Expand Down

0 comments on commit 38dfde0

Please sign in to comment.