]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
fix(devtools): avoid grouping patches and mutations with finished actions
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 15 Jul 2021 10:46:36 +0000 (12:46 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 19 Jul 2021 09:52:24 +0000 (11:52 +0200)
src/devtools/plugin.ts

index 526a0b2734feeb87fb46d7812180af79608b4ceb..468a1ea809ef2ede635aef90938bf0fbef71e96d 100644 (file)
@@ -270,6 +270,7 @@ function addDevtools(app: App, store: Store) {
         })
 
         after((result) => {
+          activeAction = undefined
           api.addTimelineEvent({
             layerId: MUTATIONS_LAYER_ID,
             event: {
@@ -287,6 +288,7 @@ function addDevtools(app: App, store: Store) {
         })
 
         onError((error) => {
+          activeAction = undefined
           api.addTimelineEvent({
             layerId: MUTATIONS_LAYER_ID,
             event: {