From 94f2b5eda1bc15b538e18fbe461dad8cc7a571d1 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 23 Aug 2024 12:58:30 +0800 Subject: [PATCH] Add some debug info --- .../web/components/templates/library/LibraryContainer.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/web/components/templates/library/LibraryContainer.tsx b/packages/web/components/templates/library/LibraryContainer.tsx index 84c39fee9..ed9bca218 100644 --- a/packages/web/components/templates/library/LibraryContainer.tsx +++ b/packages/web/components/templates/library/LibraryContainer.tsx @@ -122,9 +122,14 @@ export function LibraryContainer(props: LibraryContainerProps): JSX.Element { fetchNextPage, fetchPreviousPage, hasNextPage, + status, error: fetchItemsError, } = useGetLibraryItems(props.folder ?? 'home', props.folder, queryInputs) + console.log( + `status ${status}, isLoading: ${isLoading}, isFetching: ${isFetching}` + ) + useEffect(() => { if (queryValue.startsWith('#')) { debouncedFetchSearchResults( @@ -1022,6 +1027,8 @@ export function LibraryItemsLayout( isSessionStorage: false, }) + console.log('props.isValidating: ', props.isValidating) + return ( <>