fix(core): check if injected state matches options and scope id (#1562)

* fix(core): prefer options id when finding state

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* fix(core): check if injected state matches options id

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(changeset): add

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

---------

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2024-07-27 20:21:33 +02:00
parent 6d9535a1a9
commit fff558fbc3
3 changed files with 15 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
---
"@vue-flow/core": patch
---
Check if injected vue flow state matches options id, otherwise create new state

View File

@@ -0,0 +1,5 @@
---
"@vue-flow/core": patch
---
Prefer options id over scope id when finding vue flow internal state by id