observablehq / framework

A static site generator for data apps, dashboards, reports, and more. Observable Framework combines JavaScript on the front-end for interactive graphics with any language on the back-end for data analysis.
https://observablehq.com/framework/
ISC License
2.13k stars 85 forks source link

Expanded objects are not cleaned up on invalidation #1456

Closed mbostock closed 2 weeks ago

mbostock commented 2 weeks ago

For example here:

```js
const foo = view(Inputs.button("reset"));
const obj = {foo};
obj


If you open the object and then click the reset button, you’ll see the bug:

<img width="221" alt="Screenshot 2024-06-12 at 5 25 19 PM" src="https://github.com/observablehq/framework/assets/230541/1f808d2f-6b69-43a5-ba43-6cb72de8b95e">