loading...

re: ✅useContext ✅ to Update State in List from Detail View (React Native) VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hey Michael, great article! I was wondering how you would have implemented the feature to add another object to DATA, and have it update the list. ...
 

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.

Code of Conduct Report abuse