Skip to content

Commit 1da0367

Browse files
committed
fix: switch boolean logic of flag
1 parent dd34b44 commit 1da0367

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/@lwc/engine-core/src/framework/mutation-tracker.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ export function componentValueObserved(vm: VM, key: PropertyKey, target: any = {
4242
lwcRuntimeFlags.ENABLE_EXPERIMENTAL_SIGNALS &&
4343
isObject(target) &&
4444
!isNull(target) &&
45-
(lwcRuntimeFlags.USE_TRY_CATCH_FOR_SIGNALS_CHECK
46-
? safeHasProp(target, 'value')
47-
: 'value' in target) &&
48-
(lwcRuntimeFlags.USE_TRY_CATCH_FOR_SIGNALS_CHECK
49-
? safeHasProp(target, 'subscribe')
50-
: 'subscribe' in target) &&
45+
(lwcRuntimeFlags.DISABLE_TRY_CATCH_FOR_SIGNALS_CHECK
46+
? 'value' in target
47+
: safeHasProp(target, 'value')) &&
48+
(lwcRuntimeFlags.DISABLE_TRY_CATCH_FOR_SIGNALS_CHECK
49+
? 'subscribe' in target
50+
: safeHasProp(target, 'subscribe')) &&
5151
isFunction((target as any).subscribe) &&
5252
isTrustedSignal(target) &&
5353
// Only subscribe if a template is being rendered by the engine

0 commit comments

Comments
 (0)