Skip to content

Fix infinite rerender#313

Merged
severo merged 7 commits intomasterfrom
fix-infinite-rerender
Oct 29, 2025
Merged

Fix infinite rerender#313
severo merged 7 commits intomasterfrom
fix-infinite-rerender

Conversation

@severo
Copy link
Copy Markdown
Contributor

@severo severo commented Oct 29, 2025

fix #311

partially reverts #303

@severo severo requested a review from Copilot October 29, 2025 15:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request refactors side effects in two components to improve their reliability and fix potential issues with state management and ref access. The changes convert imperative code that runs conditionally after render into proper useEffect hooks with appropriate dependencies.

  • Converted scroll logic in HighTable from conditional imperative code to a proper useEffect hook
  • Replaced scrollTo method with direct scrollTop assignment for better jsdom compatibility
  • Fixed ColumnMenu container initialization logic to throw an error when containerRef is unexpectedly null

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/components/HighTable/HighTable.tsx Refactored scroll-to-cell logic into useEffect hook and replaced scrollTo with direct scrollTop assignment
src/components/ColumnMenu/ColumnMenu.tsx Fixed container initialization to throw error when containerRef is not set instead of silently failing

##Copilot Suggestions


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/HighTable/HighTable.tsx Outdated
Comment thread src/components/HighTable/HighTable.tsx Outdated
@severo severo changed the title partially revert #303 and ignore eslint rule Fix infinite rerender Oct 29, 2025
@severo severo requested a review from Copilot October 29, 2025 15:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/HighTable/HighTable.tsx Outdated
@severo severo merged commit 02e9d5b into master Oct 29, 2025
5 checks passed
@severo severo deleted the fix-infinite-rerender branch October 29, 2025 15:54
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.

Console errors

2 participants