I checked a bunch of things and, as far as I can tell, everything is wired up correctly for this to work.
Clicking the menu item does actually fire an event that changes the value in recoil. If you log the value in the GoTo component, you'll see that when you click the menu item, the showGoToMenu value changes to true but then something else triggers and changes it back to false. I can't figure out what it is.
I checked a bunch of things and, as far as I can tell, everything is wired up correctly for this to work.
Clicking the menu item does actually fire an event that changes the value in recoil. If you log the value in the GoTo component, you'll see that when you click the menu item, the
showGoToMenu
value changes totrue
but then something else triggers and changes it back to false. I can't figure out what it is.