Comments (4)
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.
Relevant ancillary documentation:
[1][2]
Identifier uniqueness considerations:
This document specifies three algorithms to generate UUIDs: the
first leverages the unique values of 802 MAC addresses to
guarantee uniqueness, the second uses pseudo-random number
generators, and the third uses cryptographic hashing and
application-provided text strings. As a result, the UUIDs
generated according to the mechanisms here will be unique from all
other UUIDs that have been or will be assigned.
A Universally Unique IDentifier (UUID) URN Namespace
from animated_tree_view.
Do you get the DuplicateKeyException
with the default keys or with the custom keys?
Using an int key would not work, as the keys are used to compute the path, so any Key, will need to have a toString()
override.
If its an issue with the default implementation, then rather then using the UniqueKey, I can update it to use a UUID instead.
You can test your code by using one the of UUID, let me if it resolves the issue for you.
from animated_tree_view.
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 UniqueKey
with Uuid
for generating the keys, and now the issue has been resolved.
There are no duplicate keys even at 100,000 children.
from animated_tree_view.
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 GlobalKey
?
I read somewhere that is not real guaranty of uniqueness with uuid
from animated_tree_view.
Related Issues (20)
- Why node.data can be null? HOT 1
- Possible bug? HOT 6
- Build custom ExpansionIndicator HOT 1
- Order issue when add a new node HOT 4
- Tree is getting collapsed moving from one tab to another/screen HOT 2
- Question: Editing Tree Hierarchy
- 2D Scrolling HOT 1
- How to load the tree data only when it is needed? HOT 4
- How to detect if node is expanding or shrinking in onItemTap method? HOT 1
- expandAllChildren HOT 3
- Get objects in the tree
- Expand on ExpansionIndicator tap instead of on Node tap HOT 3
- node.add() method causes break in linking tree lines: File explorer example HOT 3
- is Infinite nesting expands the fold list? HOT 1
- Please make AnimationController in ExpansionIndicatorState public
- v2.0.1 ,add node to rootNode will produce repeated subNode UI
- How to use with sticky headers?
- [Feature Request] Need indentationBuilder to customize indentation for different level
- UnimplementedError: combinePaths not implemented in HTML renderer [iOs Web]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from animated_tree_view.