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
Not generating unique keys for the nodes #29
Comments
Do you get the You can test your code by using one the of UUID, let me if it resolves the issue for you. |
I looked into this issue, and apparently, if the child count is more than 10,000, then the duplicate keys started to appear at a rate of 0.3-0.4%. I have replaced the |
Yeah, it was happening when opening large directories multiple times. The best solution would be with no limit. Why you don't give a try to I read somewhere that is not real guaranty of uniqueness with |
Uuids are guaranteed to be unique within a system. As we are only concerned with uniqueness within the local system that is generating the Uuids, so they will be unique. Theoretically, there is no limit to how many Uuids can be generated, however I have only tested upto 100,000 entries.
|
I got this error (
animated_tree_view/lib/node/node.dart
Line 54 in 3e7ec1e
In my case it happens (sometimes) when I open this tree location (/bin/), where there are a lot of children.
I bypass this error by providing a String key to every node.
I suggest that maybe you can provide an int instead of String (2^64 unique keys is enough).
Also I tried to use int keys like this:
'$keyIndex++'
, but I got same error: (0 key is yet used, 1 key is yet used, ...).The text was updated successfully, but these errors were encountered: