Skip to content

Commit d2bcacd

Browse files
committed
[Docs] Note on subscription semantics
1 parent fe6996e commit d2bcacd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/subscriptions-helper.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,6 @@ let make = (_children) => {
6464

6565
Now you won't ever forget to clear your timer!
6666

67+
**Note**: `subscriptions` is called **once**, after the component is mounted. It's not re-evaluated every time the component updates.
68+
6769
**Note**: this is an **interop helper**. This isn't meant to be used as a shiny first-class feature for e.g. adding more flux stores into your app (for that purpose, please use our [local reducer](state-actions-reducer.md#actions-reducer)). Every time you use `subscriptions`, consider it as a simple, pragmatic and performant way to talk to the existing world.

0 commit comments

Comments
 (0)