fix: copy preloadedstate object for pinia to avoid using an existing state when re-creating store

This commit is contained in:
Braks
2021-08-08 19:28:45 +02:00
parent 3b5857febb
commit 6347cf97cb
+3 -1
View File
@@ -18,7 +18,9 @@ export default function configureStore(
return defineStore({
id: 'revue-flow-' + Math.random(),
state: () => preloadedState,
state: () => ({
...preloadedState
}),
getters: {},
actions: {
setElements(elements) {