Skip to content

Commit 07256ee

Browse files
committed
Update comment to include observers
1 parent 0db4061 commit 07256ee

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/rules/reactivity.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -893,9 +893,10 @@ const rule: TSESLint.RuleModule<MessageIds, []> = {
893893
"ResizeObserver",
894894
].includes(callee.name)
895895
) {
896-
// on* and timers are NOT tracked scopes. However, they don't need to react
897-
// to updates to reactive variables; it's okay to poll the current
898-
// value. Consider them called-function tracked scopes for our purposes.
896+
// on*, timers, and observers are NOT tracked scopes. However, they
897+
// don't need to react to updates to reactive variables; it's okay
898+
// to poll the current value. Consider them called-function tracked
899+
// scopes for our purposes.
899900
pushTrackedScope(arg0, "called-function");
900901
} else if (matchImport("on", callee.name)) {
901902
// on accepts a signal or an array of signals as its first argument,

0 commit comments

Comments
 (0)