[docs] clarify readable callback timing (#6725)

#6724
pull/7738/head
Simon H 5 years ago committed by GitHub
parent 9b30c8c983
commit 51a534d2c3

@ -357,7 +357,7 @@ store = derived([a, ...b], callback: ([a: any, ...b: any[]], set: (value: any) =
---
Derives a store from one or more other stores. Whenever those dependencies change, the callback runs.
Derives a store from one or more other stores. The callback runs initially when the first subscriber subscribes and then whenever the store dependencies change.
In the simplest version, `derived` takes a single store, and the callback returns a derived value.

Loading…
Cancel
Save