Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 541 Bytes

File metadata and controls

15 lines (10 loc) · 541 Bytes

Reaction

h(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

h(Example, { name: "api/reaction_component" })

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