fix: immutable was sending empty steps
This commit is contained in:
parent
b2c9fbaa2f
commit
35f6e3ab4a
|
@ -179,7 +179,7 @@ export class Informed extends decorate(Trait) {
|
|||
const reducedState = this.reduceState(state);
|
||||
// Take a pure JS diff.
|
||||
let steps = immutablediff(this._state, reducedState);
|
||||
if (0 === steps.length) {
|
||||
if (0 === steps.size) {
|
||||
this._state = reducedState;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user