Skip to content

Commit

Permalink
fix(signals): define deep signals as configurable properties (#4147)
Browse files Browse the repository at this point in the history
  • Loading branch information
markostanimirovic committed Nov 23, 2023
1 parent 9317b71 commit 890ca5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/signals/src/deep-signal.ts
Expand Up @@ -37,6 +37,7 @@ export function toDeepSignal<T>(signal: Signal<T>): DeepSignal<T> {
if (!isSignal(target[prop])) {
Object.defineProperty(target, prop, {
value: computed(() => target()[prop]),
configurable: true,
});
}

Expand Down

0 comments on commit 890ca5b

Please sign in to comment.