You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/refguide/reaction.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Any observables that are accessed while executing the side effect will not be tr
9
9
10
10
The side effect can be debounced, just like `autorunAsync`.
11
11
`reaction` returns a disposer function.
12
-
The functions passed to `reaction` will receive one argument when invoked, the current reaction, which can be used to dispose the when during execution.
12
+
The functions passed to `reaction` will receive two argument when invoked, the current reaction, which can be used to dispose the when during execution.
13
13
14
14
It is important to notice that the side effect will *only* react to data that was *accessed* in the data expression, which might be less then the data that is actually used in the effect.
15
15
Also, the side effect will only be triggered when the data returned by the expression has changed.
0 commit comments