diff --git a/.changeset/short-mice-fry.md b/.changeset/short-mice-fry.md new file mode 100644 index 000000000000..3e66f254bda8 --- /dev/null +++ b/.changeset/short-mice-fry.md @@ -0,0 +1,5 @@ +--- +"@pankod/refine-core": patch +--- + +Fixed `queryOptions` parameter of `useShow` hook diff --git a/packages/core/src/hooks/show/useShow.ts b/packages/core/src/hooks/show/useShow.ts index 77ab71bb8d7c..b560401e2522 100644 --- a/packages/core/src/hooks/show/useShow.ts +++ b/packages/core/src/hooks/show/useShow.ts @@ -95,6 +95,7 @@ export const useShow = < id: showId ?? "", queryOptions: { enabled: showId !== undefined, + ...queryOptions, }, successNotification, errorNotification, @@ -102,7 +103,6 @@ export const useShow = < liveMode, onLiveEvent, dataProviderName, - ...queryOptions, }); return {