lifeart / glimmer-next

GXT is `glimmer-vm` runtime alternative, only 7kb gzipped
https://g-next.netlify.app
MIT License
30 stars 3 forks source link

Introduce mutation transactions? #156

Open lifeart opened 3 months ago

lifeart commented 3 months ago

Per-cell time-traveling may not represent business case, it would be great to have mutation transaction to group changes and rollback it per-mutation. May be related to: https://github.com/lifeart/glimmer-next/pull/57 By default, it may be eventAction transaction, where multiple items created / mutated in one runloop.

lifeart commented 3 months ago

Here is POC - https://github.com/proposal-signals/signal-utils/pull/71

lifeart commented 3 months ago

Additional use-case: HMR to keep component state after re-creation