Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Oct 24, 2024
2 parents 64ad1ae + 1add43a commit 72c837a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/concepts/derived-values/memos.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ While you can use a [derived signal](/concepts/derived-values/derived-signals) t

- Memos are optimized to execute only once for each change in their dependencies.
- When working with expensive computations, memos can be used to cache the results so they are not recomputed unnecessarily.
- A memo will only recompute when its dependencies change, and will not trigger subsequent updates (as determiend by [`===` or strict equality](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality)) if its dependencies change but its value remains the same.
- A memo will only recompute when its dependencies change, and will not trigger subsequent updates (as determined by [`===` or strict equality](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality)) if its dependencies change but its value remains the same.
- Any signal or memo accessed within a memo's function is **tracked**.
This means that the memo will re-evaluate automatically when these dependencies change.

Expand All @@ -51,7 +51,7 @@ While you can use a [derived signal](/concepts/derived-values/derived-signals) t
## Memo vs. effect

Both memos and effects are important when managing reactive computations and side effects.
They, however, serve different purposes and each have their own unique behaviors.
They, however, serve different purposes and each has their own unique behaviors.

| | Memos | Effects |
| -------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
Expand Down

0 comments on commit 72c837a

Please sign in to comment.