fix: search
This commit is contained in:
1 parent
995342f18a
commit
99255f4f13
7 files changed
+27
-13
No files matched your search
@@ -6,7 +6,7 @@ import useInfiniteList from '@/hooks/useInfiniteList';
|
||||
const useSearch = (props: SearchQueryProps) => {
|
||||
const previousRef = useRef<Show[]>([]);
|
||||
|
||||
const infiniteQuery = useInfiniteList(searchQuery(props));
|
||||
const infiniteQuery = useInfiniteList({ ...searchQuery(props), mode: 'default' });
|
||||
|
||||
if (infiniteQuery.isFetched) {
|
||||
previousRef.current = infiniteQuery.shows;
|
||||
|
||||
Reference in new issue
Block a user