Skip to main content

๐Ÿšง Side Effects

A side-effects system would let you register before/after handlers that run whenever records are created, updated, or deleted โ€” for validation, cascading changes, or derived data.

Planned โ€” not yet available as a formal registry.

For now, @oh-just-another/state emits change notifications through the editor's typed event interface (EditorEvents), which you can subscribe to and react to externally. Scene mutations themselves go through the pure operations in @oh-just-another/scene (addElement, updateElement, โ€ฆ), each returning the next scene plus a Patch you can inspect โ€” but there is no registered before/after hook chain yet.