PedroBern / react-native-collapsible-tab-view

A cross-platform Collapsible Tab View component for React Native
MIT License
831 stars 161 forks source link

Tabs.FlatList data not re-rendering when `extraData` is provided #142

Closed alexpchin closed 3 years ago

alexpchin commented 3 years ago

Current behavior

I'm optimistically modifying some data in:

<Tabs.FlatList
      data={hits}
      extraData={_getMergedHits()}
      .
      .

However, the data doesn't seem to be re-rendering. If I modify the data in data then it works, e.g.

<Tabs.FlatList
      data={_getMergedHits()}
      .
      .

Expected behaviour

I expect the list data to update when modified data is passed to extraData