Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 7889cab

Browse files
committed
[@agile-ts/core] removed freezing object due to issues
1 parent ecf2a24 commit 7889cab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/state/state.observer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export class StateObserver<ValueType = any> extends Observer<ValueType> {
151151
this.sideEffects(job);
152152

153153
// Assign new public value to the Observer (value used by the Integrations)
154-
job.observer.previousValue = Object.freeze(copy(observer.value));
154+
job.observer.previousValue = copy(observer.value); // Object.freeze(copy(observer.value)); // Not freezing because it leads to issues when working with classes
155155
job.observer.value = copy(state._value); // Object.freeze(copy(state._value)); // Not freezing because of 'useProxy' hook
156156
}
157157

0 commit comments

Comments
 (0)