Skip to content

Commit e51f2a9

Browse files
committed
docs: fix typo in content lifecycle-of-reactive-effect
1 parent 9e97ad0 commit e51f2a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/learn/lifecycle-of-reactive-effects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ function ChatRoom() {
744744
745745
<Pitfall>
746746
747-
The linter is your friend, but its powers are limited. The linter only knows when the dependencies are *wrong*. It doesn't know *the best* way to solve each case. If the linter suggests a dependency, but adding it causes a loop, it doesn't mean the linter should be ignored. You need to change the code inside (or outside) the Effect so that that value isn't reactive and doesn't *need* to be a dependency.
747+
The linter is your friend, but its powers are limited. The linter only knows when the dependencies are *wrong*. It doesn't know *the best* way to solve each case. If the linter suggests a dependency, but adding it causes a loop, it doesn't mean the linter should be ignored. You need to change the code inside (or outside) the Effect so that value isn't reactive and doesn't *need* to be a dependency.
748748
749749
If you have an existing codebase, you might have some Effects that suppress the linter like this:
750750

0 commit comments

Comments
 (0)