]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
refactor: unused parameter in devtools
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 8 Mar 2021 15:31:48 +0000 (16:31 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 8 Mar 2021 15:31:53 +0000 (16:31 +0100)
src/devtools.ts

index c0df67093285c0844a4e08bfb951f72d7c0c5f68..6e41b9ba565be345a42d6eb8d470e4c60887c94c 100644 (file)
@@ -77,12 +77,9 @@ export function useStoreDevtools(
 
   store.$subscribe((mutation, state) => {
     rootStore.state[store.$id] = state
-    devtoolHook.emit(
-      'vuex:mutation',
-      assign({}, mutation, {
-        type: `[${mutation.storeName}] ${mutation.type}`,
-      }),
-      rootStore.state
-    )
+    devtoolHook.emit('vuex:mutation', {
+      type: `[${mutation.storeName}] ${mutation.type}`,
+      payload: mutation.payload,
+    })
   })
 }