From 6ea3b2d54cc6ecf0d0dff2fb5216ee00c034f4b6 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 23 Aug 2024 13:29:16 +0800 Subject: [PATCH] Use isFetching to show items are being refreshed --- packages/web/components/templates/library/LibraryContainer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/web/components/templates/library/LibraryContainer.tsx b/packages/web/components/templates/library/LibraryContainer.tsx index ed9bca218..b7095a0ae 100644 --- a/packages/web/components/templates/library/LibraryContainer.tsx +++ b/packages/web/components/templates/library/LibraryContainer.tsx @@ -374,6 +374,7 @@ export function LibraryContainer(props: LibraryContainerProps): JSX.Element { }) return } + showSuccessToast(`Item deleted`, { position: 'bottom-right', }) @@ -833,7 +834,7 @@ export function LibraryContainer(props: LibraryContainerProps): JSX.Element { loadMore={fetchNextPage} hasMore={hasNextPage ?? false} hasData={!!itemsPages} - isValidating={isLoading || isFetchingNextPage} + isValidating={isLoading || isFetching || isFetchingNextPage} fetchItemsError={!!fetchItemsError} labelsTarget={labelsTarget} setLabelsTarget={setLabelsTarget}