Skip to content

Commit 08c210e

Browse files
authored
chore: add changeset
1 parent be081a5 commit 08c210e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.changeset/angry-poets-visit.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@tanstack/react-virtual": patch
3+
---
4+
5+
feat(react-virtual): add `useFlushSync` option
6+
7+
Adds a React-specific `useFlushSync` option to control whether `flushSync` is used for synchronous scroll correction during measurement.
8+
9+
The default behavior remains unchanged (`useFlushSync: true`) to preserve the best scrolling experience.
10+
Disabling it avoids the React 19 warning about calling `flushSync` during render, at the cost of potentially increased visible whitespace during fast scrolling with dynamically sized items.

0 commit comments

Comments
 (0)