-
-
Notifications
You must be signed in to change notification settings - Fork 601
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
getNodeByKey() does not find nodes if a numeric key is passed as number instead of string #1005
Comments
This should not be the case: If you think you found a bug, please give more details, and I will re-open this issue. |
getNodeByKey () works fine. The only problem is the lack of direct indication in the documentation, the need to enable generateIds: true. |
I realized what I had a problem. As a key, I used the ID from the database. And in one place he ended up in a string in another number. And the getNodeByKey function uses a comparison if (node.key === key) {. |
|
The documentation for the getNodeByKey function does not indicate that it requires the installation of options to work:
It would be nice to add it there.
The text was updated successfully, but these errors were encountered: