microsoft / essex-toolkit

Provides a set of useful tools, utilities, reusable components, and React hooks that are designed to capture common components and utilities common among Essex Alpha team projects.
https://microsoft.github.io/essex-toolkit/
MIT License
19 stars 7 forks source link

Use shallow-copies of node-inputs on recompute #257

Closed darthtrevino closed 3 months ago

darthtrevino commented 3 months ago

This PR uses shallow-copies for the recompute step. This prevents multiple, rapid recomputes from using the same data. This PR also introduces a couple of new output-emitting conditions, and updates the graph.drain() method to use a topological visit order so that any late updates are fully propagated through the graph.