Skip to content

Commit

Permalink
fix(devtools): reflect changes on HMR
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Aug 2, 2021
1 parent b12f153 commit aebc9a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/devtools/plugin.ts
Expand Up @@ -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
Expand Down

0 comments on commit aebc9a0

Please sign in to comment.