Skip to content

How do I share state between menubar and menu #769

Answered by diegohaz
prbxr asked this question in Questions
Discussion options

You must be logged in to vote

I don't really recommend using unstable_values right now. If you do, make sure you follow the instructions on https://reakit.io/docs/experimental/

Different state hooks don't share state by default, but you can bubble state changes up the same way you would do with any React local state: https://codesandbox.io/s/reakit-menu-sharing-values-4c3iu

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@lishine
Comment options

@prbxr
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@prbxr
Comment options

@diegohaz
Comment options

@prbxr
Comment options

Answer selected by prbxr
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants