Skip to content

Commit

Permalink
fix(devtools): send inspector tree on manual devtools update
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcourtice committed Sep 6, 2021
1 parent 6cedfe6 commit 97e7203
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/devtools/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,11 @@ export default function createDevtoolsPlugin(options: Partial<Options> = OPTIONS

eventEmitter.on(EVENTS.mutation.success, successMutationHook);
eventEmitter.on(EVENTS.mutation.error, errorMutationHook);
eventEmitter.on(EVENTS.devtools.update, () => api.sendInspectorState(DEVTOOLS_ID));

eventEmitter.on(EVENTS.devtools.update, () => {
api.sendInspectorTree(DEVTOOLS_ID);
api.sendInspectorState(DEVTOOLS_ID);
});
});
},

Expand Down

0 comments on commit 97e7203

Please sign in to comment.