Skip to content

Commit 350186e

Browse files
authored
Update effects.mdx (#819)
1 parent a51edbe commit 350186e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/concepts/effects.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ This means that the order of execution of effects is *not guaranteed* and should
9696
### Nested effects
9797

9898
When working with effects, it is possible to nest them within each other.
99-
This allows each effect to independently track its own dependencies, without affect the effect that it is nested within.
99+
This allows each effect to independently track its own dependencies, without affecting the effect that it is nested within.
100100

101101
```jsx
102102
createEffect(() => {
@@ -118,7 +118,7 @@ const [count, setCount] = createSignal(0);
118118

119119
createEffect(() => {
120120
console.log("Outer effect starts");
121-
createEffect(() => console.log(count())); // when count changes, only the this effect will run
121+
createEffect(() => console.log(count())); // when count changes, only this effect will run
122122
console.log("Outer effect ends");
123123
});
124124
```

0 commit comments

Comments
 (0)