I lost the code but here is the more useful StackOverflow post: https://stackoverflow.com/questions/41030361/how-to-update-react-context-from-inside-a-child-component
Run the code in your browser: https://snack.expo.io/@technoplato/toggle-state-in-list-from-detail-view-(using-context)
Dev.to post:
Reddit post:
Alternate method using Callbacks instead of Context. I prefer Context much better, but both work.
✅? ➡ https://www.youtube.com/c/michaellustig?sub_confirmation=1 ✅
?? https://dev.to/technoplato
↙ 2️⃣8️⃣0️⃣ ? ? https://twitter.com/technoplato
↗ 2️⃣8️⃣0️⃣ ? https://medium.com/@michaellustig
? https://github.com/technoplato
...
https://www.youtube.com/watch?v=UgHL_F3tW5g