You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/api/virtualizer.md
+10
Original file line number
Diff line number
Diff line change
@@ -258,6 +258,16 @@ isRtl: boolean
258
258
259
259
Whether to invert horizontal scrolling to support right-to-left language locales.
260
260
261
+
### `useAnimationFrameWithResizeObserver`
262
+
263
+
```tsx
264
+
useAnimationFrameWithResizeObserver: boolean
265
+
```
266
+
267
+
This option enables wrapping ResizeObserver measurements in requestAnimationFrame for smoother updates and reduced layout thrashing. The default value is `false`.
268
+
269
+
It helps prevent the "ResizeObserver loop completed with undelivered notifications" error by ensuring that measurements align with the rendering cycle. This can improve performance and reduce UI jitter, especially when resizing elements dynamically. However, since ResizeObserver already runs asynchronously, adding requestAnimationFrame may introduce a slight delay in measurements, which could be noticeable in some cases. If resizing operations are lightweight and do not cause reflows, enabling this option may not provide significant benefits.
270
+
261
271
## Virtualizer Instance
262
272
263
273
The following properties and methods are available on the virtualizer instance:
0 commit comments