Skip to content

Build error from clearScrollListener #4386#4387

Open
skjulestad wants to merge 2 commits intomasterfrom
issue-4386
Open

Build error from clearScrollListener #4386#4387
skjulestad wants to merge 2 commits intomasterfrom
issue-4386

Conversation

@skjulestad
Copy link
Copy Markdown
Collaborator

Fix build warning from clearScrollListener.

Fix build warning from clearScrollListener.
@skjulestad skjulestad requested a review from alansemenov March 30, 2026 11:19
@skjulestad skjulestad linked an issue Mar 30, 2026 that may be closed by this pull request
Comment on lines +619 to +623
useEffect(() => {
return () => {
scrollListenerCleanupRef.current?.();
scrollListenerCleanupRef.current = null;
};
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This basically duplicates the code inside const clearScrollListener. If the const is no longer needed/in use - remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build error from clearScrollListener

3 participants