events
Overmind emits events during execution of actions and similar. It can be beneficial to listen to these events for analytics or maybe you want to create a custom debugging experience. The following events can be listened to by adding a listener to the eventHub:
1
overmind.eventHub.on('action:start', (execution) => {})
2
overmind.eventHub.on('action:end', (execution) => {})
3
overmind.eventHub.on('operator:start', (execution) => {})
4
overmind.eventHub.on('operator:end', (execution) => {})
5
overmind.eventHub.on('operator:async', (execution) => {})
6
overmind.eventHub.on('mutations', (executionAndMutations) => {})
7
overmind.eventHub.on('derived', (derived) => {})
8
overmind.eventHub.on('derived:dirty', (derivedPathAndFlush) => {})
9
10
// Only during development
11
overmind.eventHub.on('effect', (effectDetails) => {})
12
overmind.eventHub.on('getter', (getterDetails) => {})
13
overmind.eventHub.on('component:add', (componentDetails) => {})
14
overmind.eventHub.on('component:update', (componentDetails) => {})
15
overmind.eventHub.on('component:remove', (componentDetails) => {})
Copied!
Last modified 1yr ago
Copy link