Skip to content

Commit 54e3925

Browse files
committed
tweak
1 parent d39e60b commit 54e3925

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/svelte/src/internal/client/runtime.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,8 +871,7 @@ export function get(signal) {
871871
if (DEV) {
872872
if (current_async_effect) {
873873
var tracking = (current_async_effect.f & REACTION_IS_UPDATING) !== 0;
874-
var was_read =
875-
current_async_effect.deps !== null && current_async_effect.deps.includes(signal);
874+
var was_read = current_async_effect.deps?.includes(signal);
876875

877876
if (!tracking && !was_read) {
878877
w.await_reactivity_loss(/** @type {string} */ (signal.label));

0 commit comments

Comments
 (0)