Skip to content

Commit 643708a

Browse files
committed
Stabilize ID of transition's dynamic to
This matters because browsers persist the position of these nodes
1 parent d9378b6 commit 643708a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/workflow/dto/serialized-workflow.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export class SerializedWorkflow extends DataObject {
149149
};
150150
const dynamicToId = cacheable(
151151
new Map<DynamicState<W['state'], W['context']>, string>(),
152-
() => uuid.v1(),
152+
({ resolve, ...props }) => uuid.v5(JSON.stringify(props), workflow.id),
153153
);
154154
return {
155155
id: workflow.id,

0 commit comments

Comments
 (0)