Skip to content

Update deps#303

Merged
severo merged 7 commits intomasterfrom
update-deps
Oct 16, 2025
Merged

Update deps#303
severo merged 7 commits intomasterfrom
update-deps

Conversation

@severo
Copy link
Copy Markdown
Contributor

@severo severo commented Oct 16, 2025

I updated multiple parts of the code to fix new errors reported after upgrading react-hooks ESLint plugin, thanks to the excellent rule https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect.

Note that it removes useEffect hooks on one side, but we have to (or, the only solution I found is to) add other useEffect hooks to keep the reference to HTML elements in a state. So... not sure if the code is simpler overall, but I guess we respect the rules of React a bit more...

@severo severo merged commit 00ae3fb into master Oct 16, 2025
5 checks passed
@severo severo deleted the update-deps branch October 16, 2025 13:05
@severo severo mentioned this pull request Oct 29, 2025
severo added a commit that referenced this pull request Oct 29, 2025
@severo severo mentioned this pull request Oct 29, 2025
severo added a commit that referenced this pull request Oct 29, 2025
* partially revert #303 and ignore eslint rule

* cellPosition is memoized

* remove dead code

* the ref is provided by the context, thus triggers the effect

* format

* simplify the code, remove eslint warning

* use scrollTo
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.

1 participant