Skip to content

List not rendering items after initial data array is empty #784

@freddy-eturi

Description

@freddy-eturi

How to reproduce:

  1. Have an empty data set. Use EmptyListComponent
  • EmptyListComponent will render correctly.
  1. Add an item to the data set without destroying the FlashList i.e via state change.
  • EmptyListComponent will disappear, but new item is not rendered.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions