-
Notifications
You must be signed in to change notification settings - Fork 289
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
Load node data on hover #529
Comments
onNodeHover?: (node: NodeObject | null, previousNode: NodeObject | null) => void; @happylolonly You can get the value of the node from the onNodeHover function. In the case of react, <ForceGraph onNodeHover={(node) => console.log("hovering node", node) } /> |
Suppose i want to render a tooltip displaying the node details on hover, how would i do it. Also for some reason when i hover over the node, the entire graph re renders. It keeps re rendering until unless i remove my mouse from the node. const HighlightGraph: React.FC = () => {
}; export default HighlightGraph;` |
What is correct way to load node data on hover?
The text was updated successfully, but these errors were encountered: