DEV Community


Discussion on: ✅useContext ✅ to Update State in List from Detail View (React Native)

technoplato profile image
Michael Lustig - Author

Thanks a lot! Adding another data item to DATA should already work without re-rendering the rest of the Components in the list because within the render method of the list item, we're using useMemo and only re-rendering those when title or selected changes.

Try modifying the example and let me know if you run into any issues.