Skip to content

Commit

Permalink
updated queryKey reference
Browse files Browse the repository at this point in the history
  • Loading branch information
kkatusic committed Jul 30, 2024
1 parent 78a9454 commit 89ba8a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/views/projects/ProjectsIndex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,12 @@ const ProjectsIndex = (props: IProjectsView) => {
isFetching,
isFetchingNextPage,
} = useInfiniteQuery<Page, Error>({
queryKey: ['projects'],
queryKey: [
'projects',
contextVariables,
isArchivedQF,
selectedMainCategory,
],
queryFn: ({ pageParam = 0 }: QueryFunctionContext) =>
fetchProjects(pageParam),
getNextPageParam: (lastPage, someData) => {
Expand Down

0 comments on commit 89ba8a4

Please sign in to comment.