From 415c38ef64350ad880ff7932d306110dfeaa59e0 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 23 Aug 2024 11:58:11 +0800 Subject: [PATCH] Show the top loading bar even if cached items are being displayed during load --- .../templates/library/LibraryContainer.tsx | 30 +------------------ 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/packages/web/components/templates/library/LibraryContainer.tsx b/packages/web/components/templates/library/LibraryContainer.tsx index 6bb4829bd..84c39fee9 100644 --- a/packages/web/components/templates/library/LibraryContainer.tsx +++ b/packages/web/components/templates/library/LibraryContainer.tsx @@ -122,7 +122,6 @@ export function LibraryContainer(props: LibraryContainerProps): JSX.Element { fetchNextPage, fetchPreviousPage, hasNextPage, - hasPreviousPage, error: fetchItemsError, } = useGetLibraryItems(props.folder ?? 'home', props.folder, queryInputs) @@ -797,33 +796,6 @@ export function LibraryContainer(props: LibraryContainerProps): JSX.Element { [itemsPages, multiSelectMode, checkedItems] ) - // return ( - // Loading...} - // endMessage={ - //

- // Yay! You have seen it all - //

- // } - // > - // {libraryItems.map((item) => { - // return ( - // { - // router.push(`/${viewerData?.profile.username}/${item.node.slug}`) - // }} - // > - // {item.cursor}: {item.node.title} - // - // ) - // })} - //
- // ) - return ( )} - {props.isValidating && props.items.length == 0 && } + {props.isValidating && }
{ if (