observablehq / inspector

The Observable standard inspector.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maintain deep expanded state.

mbostock opened this issue · comments

From observablehq/notebook#201:

collapse

Inspector collapse/expand state is maintained on the top level, but not when those inspectors are nested. Ideally we can maintain as much expanded/collapsed state as possible: clearest way to do this would be to maintain a list of expanded keypaths, and expand them when there's new output.