-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove react-hooks linter suppression #8051
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -247,10 +247,6 @@ export function DocumentListPaneContent(props: DocumentListPaneContentProps) { | |
</CommandListBox> | ||
</RootBox> | ||
) | ||
// 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 | ||
Comment on lines
-250
to
-252
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't reproduce this issue mentioned here, so I think we're good. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good call, glad to get rid of hacks like this |
||
// 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 ( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sending the
task._rev
here is just to make it a validuseEffect
dependency in the eyes ofeslint-plugin-react-hooks/exhaustive-deps
as well as the React Compiler.