From aebc9a0969bec40c06b28f96ff0d1d048f589f31 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Mon, 2 Aug 2021 15:22:59 +0200 Subject: [PATCH] fix(devtools): reflect changes on HMR --- src/devtools/plugin.ts | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.2