Handling FlatList re-rendering when using Mobx to store nested data objects #3626
-
Hi, I have a flatlist showing items and the data for this is stored in a mobx store. I've tried to .slice() the store but this hasn't worked. I've tried to js() the store as the data prop is ReadOnly but that hasn't worked either. I've also added component to the renderItem and I've also tried store.nestedstore.length on extraData and that hasn't worked either. I think the reason for this is because the store itself has nested arrays etc. Does anyone else have any other ideas on how to re-render flatlists when using Mobx store and where the store itself is being mutated? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The above doesn't contain nearly enough information to enable us to provide an answer. There is no code, "Flatlist" is a meaningless term to us, there is nothing runnable insight. Please file an issue instead and follow the template if something isn't working as expected. |
Beta Was this translation helpful? Give feedback.
The above doesn't contain nearly enough information to enable us to provide an answer. There is no code, "Flatlist" is a meaningless term to us, there is nothing runnable insight. Please file an issue instead and follow the template if something isn't working as expected.