-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List not rendering items after initial data array is empty #784
Comments
Can you provide an expo snack which reproduces this issue? It'll help with debugging this quickly. |
Can you also post |
I'll try to create an expo as soon as I can. I am using 1.4.0 |
This is happening to me as well,
|
You're correct; I'm facing the same issue, but removing it renders a white screen for a second after the data is fetched from the API. Please lemme know if you find a solution that can handle both cases. |
@ItsFlash10 No unfortunately I did not find any solution, instead I opted to show a loader while the data is being fetched from the API. |
@shadabwahidullah It worked for me and also adding a loader didn't help in my case as the issue is after the data is being populated, so the blank screen appears after the data is fetched from the API. |
Same issues using estimatedListSize |
+1 |
Still facing this this hack does fix it, but its a hack
|
same here |
Facing the same issue, if i provide estimatedListSize, flashlist does not render the items and i see blank screen. Happening on android only |
+1 |
Just faced same issue. I was sure that I have tested in my chat app such case when user send message to the empty chat. And I was sure that everything works fine. And today new messages are ignored... I forgot that I've recently added this prop - estimatedListSize to my FlashLIst component and broke this case with this prop:D Always fun to work with libraries in RN! When you fix an issue you immediately get another one to fix:D For now I think this solution works fine:
|
How to reproduce:
However if the data set is not empty on initialization then everything works as expected.
So if the data array has an item it will render the item. If the item is removed then EmptyListComponent is rendered as expected.
Then If a new item is added then it will also render as expected.
This leads me to believe that there is an issue that occurs when initializing a FlashList with an empty data set.
Might be related to: #757 however I wasn't using a horizontal list
The text was updated successfully, but these errors were encountered: