#Updating nodes by custom events in custom nodes
1 messages · Page 1 of 1 (latest)
I figured it out, just saw this example, you can pass callback to data, but it seems I need to use useEffect to have persistent callback reference
1 messages · Page 1 of 1 (latest)
Hi, I would like to update node states (e.g., which node is selected, or some node data) when I click a button in my custom node. How can I do that?
Right now, I can only think about using React context, is there any other easier way?
I figured it out, just saw this example, you can pass callback to data, but it seems I need to use useEffect to have persistent callback reference