async calls WIP: render async calls and expand path

This commit is contained in:
Dmitry Vasilev
2022-11-08 16:22:45 +08:00
parent bcc9e7a382
commit b4bca92fca
5 changed files with 123 additions and 22 deletions

7
src/effects.js vendored
View File

@@ -172,10 +172,17 @@ export const render_common_side_effects = (prev, next, command, ui) => {
render_coloring(ui, next)
ui.editor.unembed_value_explorer()
} else {
if(prev.async_calls == null && next.async_calls != null) {
ui.calltree.render_async_calls(next)
}
if(
prev.calltree != next.calltree
||
prev.calltree_node_is_expanded != next.calltree_node_is_expanded
||
prev.async_calls != next.async_calls
) {
ui.calltree.render_expand_node(prev, next)
}