Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 536 Bytes

File metadata and controls

15 lines (10 loc) · 536 Bytes

Reaction

<Example name="api/reaction_global" />

You can register reactions to act whenever a state path is affected by a mutation. The global reactions are conigured with the application and will live as long as the application lives. A reaction results in an executed action.

Component

<Example name="api/reaction_component" view />

Inside components reactions can be registered to perform view related side effects. These reactions are unregistered automatically when the component unmounts.