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
Current behavior
If the array assigned to the value prop is empty at first, and then gets filled after a few seconds, say after an API call returns, but with only a few records then the DataScroller component fails to render the records.
Expected behavior DataScroller should render the records irrespective of whether those are provided as part of the initial render or at a later time. I shouldn't be forced to use the lazy feature of DataScroller.
Minimal reproduction of the problem with instructions
Load the initial value for the value prop as an empty array []
Using a useEffect hook or something similar, fill this array with values asynchronously
Please tell us about your environment:
Windows 10, npm, react-scripts
I'm submitting a ...
Codesandbox Case (Bug Reports)
https://codesandbox.io/s/primereact-test-forked-jrtj2?file=/src/index.js
Current behavior
If the array assigned to the
value
prop is empty at first, and then gets filled after a few seconds, say after an API call returns, but with only a few records then theDataScroller
component fails to render the records.Expected behavior
DataScroller
should render the records irrespective of whether those are provided as part of the initial render or at a later time. I shouldn't be forced to use thelazy
feature of DataScroller.Minimal reproduction of the problem with instructions
value
prop as an empty array[]
useEffect
hook or something similar, fill this array with values asynchronouslyPlease tell us about your environment:
Windows 10, npm, react-scripts
React version:
17.0.1
PrimeReact version:
6.0.2
Browser:
all
Language: [all | TypeScript X.X | ES6/7 | ES5]
ES6
The text was updated successfully, but these errors were encountered: