I’ve implemented a custom function that generates UUIDs instead of sequential values for view keys via:
diagram.model.makeUniqueKeyFunction = () => utilityService.newGuid();
I’m seeing odd behavior when dragging objects from my palette to the main canavs.
The first object dragged to the main canvas will have a view key of -1 in it’s nodeData.
The second object (of the same type) dragged onto the main canvas will have a view key of an expected UUID value.
I can reproduce this behavior consistently, however there are times (maybe 1 in 20 loads) where the custom key function seems to be ignored completely and objects dragged to the canvas all have default (sequential) view key values.