-
hi However, when I execute undo or redo (using Ctrl+Z/Ctrl+Y), the values in the panel do not change immediately. Instead, I need to select another node and then reselect the current node to trigger the panel update. This feels tedious. I want to dispatch an action to update the panel automatically after executing undo/redo. Is there any place where I can add code to implement this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @wss29 , You could simply listen for model root changes on the @inject(EditorContextService)
protected editorContextService: EditorContextService;
// listen for changes
this.editorContextService.onModelRootChanged(newRoot => {
// You update logic
}); |
Beta Was this translation helpful? Give feedback.
Hi @wss29 ,
You could simply listen for model root changes on the
EditorContextService
and trigger an update whenever the root changes: