Skip to content

Commit

Permalink
docs: clarify what "once per signal change" means (#1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcstur authored Oct 7, 2023
1 parent 32ba0ce commit 29216b2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/book/src/view/02_dynamic_attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,10 @@ Derived signals let you create reactive computed values that can be used in mult
places in your application with minimal overhead.

Note: Using a derived signal like this means that the calculation runs once per
signal change and once per place we access `double_count`; in other words, twice. This is a
very cheap calculation, so that’s fine. We’ll look at memos in a later chapter, which
are designed to solve this problem for expensive calculations.
signal change (when `count()` changes) and once per place we access `double_count`;
in other words, twice. This is a very cheap calculation, so that’s fine.
We’ll look at memos in a later chapter, which re designed to solve this problem
for expensive calculations.

> #### Advanced Topic: Injecting Raw HTML
>
Expand Down

0 comments on commit 29216b2

Please sign in to comment.