fix(core): reset nodes and edges before state
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -719,6 +719,9 @@ export function useActions(state: State, getters: ComputedGetters): Actions {
|
||||
toObject,
|
||||
updateNodeInternals,
|
||||
$reset: () => {
|
||||
state.edges = []
|
||||
state.nodes = []
|
||||
|
||||
setState(useState())
|
||||
},
|
||||
$destroy: () => {},
|
||||
|
||||
Reference in New Issue
Block a user