From: Eduardo San Martin Morote Date: Mon, 2 Aug 2021 13:22:59 +0000 (+0200) Subject: fix(devtools): reflect changes on HMR X-Git-Tag: v2.0.0-rc.2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aebc9a0969bec40c06b28f96ff0d1d048f589f31;p=thirdparty%2Fvuejs%2Fpinia.git fix(devtools): reflect changes on HMR --- diff --git a/src/devtools/plugin.ts b/src/devtools/plugin.ts index 12ee9b8a..746b4e75 100644 --- a/src/devtools/plugin.ts +++ b/src/devtools/plugin.ts @@ -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