Updated tanstack/react-virtual to 3.14.4 to add directDomUpdates#4022
Updated tanstack/react-virtual to 3.14.4 to add directDomUpdates#4022dracofulmen wants to merge 3 commits into
Conversation
📝 WalkthroughWalkthroughThe React collection list model now passes ChangesSelect virtualizer update
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@modules/react/package.json`:
- Line 53: The dependency bump in modules/react/package.json for
`@tanstack/react-virtual` is not reflected in the lockfile, so update the
yarn.lock entry for the `@tanstack/react-virtual` package to resolve ^3.14.3
instead of the older ^3.13.9 version. Make sure the lockfile entry matches the
new version used by the React package so the runtime can access
directDomUpdates, and verify the existing dependency key for
`@tanstack/react-virtual` is refreshed consistently.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 79da61f6-8736-42d3-a969-fef9288e2383
📒 Files selected for processing (2)
modules/react/collection/lib/useBaseListModel.tsxmodules/react/package.json
| "@emotion/styled": "^11.6.0", | ||
| "@popperjs/core": "^2.5.4", | ||
| "@tanstack/react-virtual": "^3.13.9", | ||
| "@tanstack/react-virtual": "^3.14.3", |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟡 Minor
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Confirm the lockfile resolves 3.14.3 and check the registry host used.
rg -nP -C4 '`@tanstack/react-virtual`@' yarn.lock
# Surface any private-registry URLs that should not be committed.
rg -n '4873|10\.0\.0\.' yarn.lock .npmrc 2>/dev/nullRepository: Workday/canvas-kit
Length of output: 1474
Update yarn.lock for @tanstack/react-virtual
yarn.lock still resolves @tanstack/react-virtual@^3.13.9 to 3.13.9 from the public Yarn registry. The package bump in modules/react/package.json won’t take effect until the lockfile is refreshed to ^3.14.3; otherwise directDomUpdates won’t be available at runtime.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@modules/react/package.json` at line 53, The dependency bump in
modules/react/package.json for `@tanstack/react-virtual` is not reflected in the
lockfile, so update the yarn.lock entry for the `@tanstack/react-virtual` package
to resolve ^3.14.3 instead of the older ^3.13.9 version. Make sure the lockfile
entry matches the new version used by the React package so the runtime can
access directDomUpdates, and verify the existing dependency key for
`@tanstack/react-virtual` is refreshed consistently.
There was a problem hiding this comment.
I can't actually update the yarn.lock on my side because it would contaminate it with changes from my personal setup
There was a problem hiding this comment.
@dracofulmen, understood — thanks for clarifying.
That makes sense, and I wouldn’t want you to commit a polluted yarn.lock. The concern is still that this PR’s functional change depends on @tanstack/react-virtual actually resolving to 3.14.3; if the lockfile stays on 3.13.9, directDomUpdates may not be present at runtime.
Best path here is probably to have the lockfile refreshed from a clean/standard project environment by someone who can do that safely. If you want to keep that out of this PR, I can help open a follow-up issue for the lockfile update.
There was a problem hiding this comment.
I would hope that a reviewer would be able to generate the correct version of the new yarn.lock.
There was a problem hiding this comment.
@dracofulmen Fair point — I agree this is better handled from a clean reviewer/maintainer environment than from a local setup that would dirty yarn.lock.
The concern I raised is still about making sure the lockfile actually resolves the new @tanstack/react-virtual version, but I won’t push this back on you if you can’t generate it safely from your machine.
|
In order to make this work fully, it requires doing |
|
I figured out how to get the ref working. I had to add it to |
Summary
Fixes: #4016
The Select component continuously rerenders in v15 while the scroll bar is not at the top. This makes the scroll bar flash continuously. This happens even with static options. I traced the bug to tanstack and submitted a fix there. However, @piecyk also suggested that I add directDomUpdates on this side. In order to do that, I also had to update the version of tanstack/react-virtual in the dependencies from 3.13.9 to 3.14.3. This option
Release Category
Dependencies, Components
Checklist
ready for reviewhas been added to PRFor the Reviewer
Where Should the Reviewer Start?
Summary by CodeRabbit