Start refactoring state management
This commit is contained in:
parent
ca0bf943f7
commit
a9ad628488
1 changed files with 410 additions and 360 deletions
|
|
@ -26,7 +26,7 @@ export abstract class InnerNode extends Node {
|
|||
return this.update((self: this) => this.cloneWithMap.call(self, map));
|
||||
}
|
||||
|
||||
changeKey(update: { value: any; propertyName: string }): this {
|
||||
changeKey(update: { propertyName: string; value: any }): this {
|
||||
return this.update((self: this) => this.cloneWithAdd.call(self, update));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue