primereact
primereact copied to clipboard
VirtualScroller: does not update items if only rows length changes
Describe the bug
VirtualScroller with both directions does not update items if the number of columns changes but not the number of rows. The error is in useUpdateEffect that compares prev items length with current items length. This will return false if only the number of columns has changed.
Reproducer
No response
PrimeReact version
9.6.0+
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response