What can I do with a node id returned from getNodeId? #1876
Unanswered
JordanSalinas
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @JordanSalinas! Do you think you could include a code example of where you are experiencing this? Maybe you could approach the problem from another angle and use e.g. a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's the purpose of getNodeId? Currently I'm using it in React as a key when iterating lists and returning components. What I'd like to do is use it to modify data in the store. i.e. removeNode(nodeId). Is there a way to use it in this way? Honestly even if I could just do getNodeById(nodeId) that'd be useful as well because then I could just use the built in methods like destroy(node). I suppose I could just implement this myself, but I think having a getNodeById method would be a lot easier and cleaner.
Beta Was this translation helpful? Give feedback.
All reactions