From 7e2a9ac8a03105aa99528707b7fa577e01fcfc13 Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Fri, 13 Dec 2024 19:36:28 +0100 Subject: [PATCH] fix: remove react-hooks linter suppression --- .../panes/documentList/DocumentListPaneContent.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/sanity/src/structure/panes/documentList/DocumentListPaneContent.tsx b/packages/sanity/src/structure/panes/documentList/DocumentListPaneContent.tsx index 8d9a2a8c7e7..483261307a5 100644 --- a/packages/sanity/src/structure/panes/documentList/DocumentListPaneContent.tsx +++ b/packages/sanity/src/structure/panes/documentList/DocumentListPaneContent.tsx @@ -247,10 +247,6 @@ export function DocumentListPaneContent(props: DocumentListPaneContentProps) { ) - // Explicitly don't include `noDocumentsContent` in the deps array, as it's - // causing a visual bug where the "No documents" message is shown for a split second - // when clearing a search query with no results - // eslint-disable-next-line react-hooks/exhaustive-deps }, [ collapsed, error, @@ -260,11 +256,13 @@ export function DocumentListPaneContent(props: DocumentListPaneContentProps) { items, layout, loadingVariant, - // noDocumentsContent, + noDocumentsContent, onRetry, + paneTitle, renderItem, searchInputElement, shouldRender, + t, ]) return (