Skip to content

Commit 98a4d69

Browse files
chore: remove checks that can cause perf regression for signals re-enablement
1 parent 4e03fa7 commit 98a4d69

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
* SPDX-License-Identifier: MIT
55
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
66
*/
7-
import { isFunction, isNull, isObject, isTrustedSignal } from '@lwc/shared';
7+
import { isNull, isObject, isTrustedSignal } from '@lwc/shared';
88
import { ReactiveObserver, valueMutated, valueObserved } from '../libs/mutation-tracker';
99
import { subscribeToSignal } from '../libs/signal-tracker';
10-
import { safeHasProp } from './utils';
1110
import type { Signal } from '@lwc/signals';
1211
import type { JobFunction, CallbackFunction } from '../libs/mutation-tracker';
1312
import type { VM } from './vm';
@@ -42,9 +41,6 @@ export function componentValueObserved(vm: VM, key: PropertyKey, target: any = {
4241
lwcRuntimeFlags.ENABLE_EXPERIMENTAL_SIGNALS &&
4342
isObject(target) &&
4443
!isNull(target) &&
45-
safeHasProp(target, 'value') &&
46-
safeHasProp(target, 'subscribe') &&
47-
isFunction(target.subscribe) &&
4844
isTrustedSignal(target) &&
4945
// Only subscribe if a template is being rendered by the engine
5046
tro.isObserving()

0 commit comments

Comments
 (0)