Persisting State to localStorage in Recoil Across Browser Tabs

from blog Jim Nielsen’s Blog, | ↗ original
I was working on a project using Recoil for state management in React. I needed to persist some state to localStorage, and there’s some info on how to do it in Recoil’s docs. That works; however it doesn’t respond to state changes from other instances of your app in multiple browser tabs. If you want that, you have to add the code yourself by...