]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
fix(devtools): reflect changes on HMR
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 2 Aug 2021 13:22:59 +0000 (15:22 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 2 Aug 2021 13:22:59 +0000 (15:22 +0200)
src/devtools/plugin.ts

index 12ee9b8a2c192ece9930c625bcebbe35113faca9..746b4e75fa8a8d23879535b941ed8e1f86e36f8a 100644 (file)
@@ -398,6 +398,10 @@ function addStoreToDevtools(app: App, store: StoreGeneric) {
             },
           },
         })
+        // update the devtools too
+        api.notifyComponentUpdate()
+        api.sendInspectorTree(INSPECTOR_ID)
+        api.sendInspectorState(INSPECTOR_ID)
       })
 
       // trigger an update so it can display new registered stores