-
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.
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.
For anyone facing the same issue, React.Context does the trick for sharing state between Dockview panels.