React-native FlatList not rerendering row when props change

后端 未结 7 575
闹比i
闹比i 2021-02-01 14:33

I\'m having an issue with the new FlatList component. Specifically, it does not rerender it\'s rows, even though props that the row is dependent on changes.


The F

相关标签:
7条回答
  • 2021-02-01 15:39

    this wasn't working for me

           setTabData(tabD);
    

    and this worked for me

          setTabData([...tabD]);
    
    0 讨论(0)
提交回复
热议问题