observablehq / runtime

The reactive dataflow runtime that powers Observable Framework and Observable notebooks
https://observablehq.com/@observablehq/how-observable-runs
ISC License
1.01k stars 71 forks source link

fix stale rejection #365

Closed mbostock closed 1 year ago

mbostock commented 1 year ago

Fixes a race condition where a variable can reject after being invalidated. It’d be nice to have a unit test for this, but I’m not sure if it’s practical. I was able to reproduce this (as described in the other private repo).