You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's not a mobx related issue, as it's React Native's issue for not refreshing on a change of a list view row item, only on newly created items. mobx does indeed update the array, so it does its part, to modify a list view row item in React Native, you have to do what ide suggested in your link, (also reread skleest's comment before ide's solution). By grabbing the index of the item from the old array, overwriting that particular item using its index with the new item/item property, and then setting the new array as the data source, that's how React Native picks up the change.
Again, this is an issue with React Native, not mobx.
Appending to the list is working, but modifying elements isn't. Here's my code:
I tried wrapping renderRow in an observer tag as suggested here, but that crashes the app.
The text was updated successfully, but these errors were encountered: