Skip to content

[FlatList] Re-render issue after item delete from flatlist array #16183

@MSSPL-PiyaleeMaiti

Description

@MSSPL-PiyaleeMaiti

Is this a bug report?

Yes, this is a bug of FlatList. After remove a index value from flatlist array, then rendering item some view is missing. Re-render is breaking in many portion.

Have you read the Contributing Guidelines?

Yes

Environment

Environment:
OS: iOS, Android
Packages:
"react-native": "^0.44.0",
"react": "16.0.0-alpha.6",

Steps to Reproduce

  1. We list item of array in FlatList View.
  2. Remove one item index from array which provide in FlatList view.
  3. After remove render view break or hide for some item not for all item.
  4. After refresh the view render issue will be same.

Expected Behavior

Rener view will be same as before and after remove index from flalist array item. No view will be changes if we delete index or add a new index in middile or in end or in start.

Actual Behavior

  1. First time array item in FlatList is showing properly.
  2. When we delete one index value from array FlatList item some view will hide.
  3. After close app again open the app then its again works fine.
  4. Why auto render will not working and also not working when doing pull to refresh.
  5. But it's working fine for loadmore item render.

Please provide any solution for this FlatList view, maybe flatlist store old data and we should delete old data store. But don't know how to remove the old data store history form flatlist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions