-
Notifications
You must be signed in to change notification settings - Fork 719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared event delegation #761
Comments
hey @goaaron 👋, thanks for checking out this is an interesting idea. I don't think this is out of line with I'm actually doing something similar with event/tooltip state in our POC for a higher-level Curious if you have any more thoughts on what sorts of things you think this could handle. Maybe it could be built as part of the curious if @techniq has any thoughts on this. |
Maybe we could explore a global event emitter design? share the emitter through context and use hooks for pubsub. quick sketch of the idea: https://codesandbox.io/s/vibrant-architecture-24kbx?file=/src/App.js #x tooltip position is shared across charts and y is local the currently hovered chart. probably a lot more we could do here. |
Looks like long-term, concurrent mode safe, react way will be the new |
Updating selections between linked graphs isn't trivial-- I've been coordinating x,y brush selection between multiple visualizations with context & reducers and thought it'd be nice to have something abstracted for this.
Victory
has the SharedEvents component that offers a nice api.I'm wondering if this kind of feature is in line with the vx roadmap?
The text was updated successfully, but these errors were encountered: