fix broken pseudo-states (they work more like regular transitions now)

This commit is contained in:
Joeri Exelmans 2025-10-25 15:51:17 +02:00
parent 3e192f8e26
commit 43e3b2117c
15 changed files with 1038 additions and 346 deletions

View file

@ -0,0 +1,9 @@
export function _evolve(object, changes) {
return Object.assign(
Object.create(Object.getPrototypeOf(object)), // create empty object with same prototype as original
{
...object,
...changes,
});
}