Skip to content

Commit

Permalink
✨ (use-get-folder.ts): update useGetFolderQuery to include additional…
Browse files Browse the repository at this point in the history
… query parameters for pagination and filtering options
  • Loading branch information
Cristhianzl committed Oct 4, 2024
1 parent c206926 commit 946e7fa
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,17 @@ export const useGetFolderQuery: useQueryFunctionType<
};

const queryResult = query(
["useGetFolder", params.id],
[
"useGetFolder",
params.id,
{
page: params.page,
size: params.size,
is_component: params.is_component,
is_flow: params.is_flow,
search: params.search,
},
],
() => getFolderFn(params),
{
refetchOnWindowFocus: false,
Expand Down

0 comments on commit 946e7fa

Please sign in to comment.