-
Hi @mathuo and everyone, I'm probably doing something really simple incorrectly due to my limited understanding of React, but here's my question: How can I synchronize the state between two panels? For example, I can create a counter in each panel and they work well independently, but I'm struggling to figure out how to share the state between them. I haven't yet know how to lift the state up. Is there a way to achieve this? Amazing work though, thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
LeoDroves
Mar 14, 2024
Replies: 1 comment
-
For anyone facing the same issue, React.Context does the trick for sharing state between Dockview panels. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LeoDroves
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For anyone facing the same issue, React.Context does the trick for sharing state between Dockview panels.