Skip to content

Commit

Permalink
fix: use new object in linked state (needed for derived memoization)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiksta committed Nov 26, 2023
1 parent 5c1b778 commit edb9bc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/rx/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default class State<T> extends MulticastStream<T> {
let current: any = this.value;
for (const a of args.slice(0, -1)) current = current[a];
current[args[args.length - 1]] = val;
parentNext(this.value);
parentNext({ ...this.value });
},
)
}
Expand Down

0 comments on commit edb9bc6

Please sign in to comment.