addFlushListener
The addMutationListener triggers whenever there is a mutation. The addFlushListener triggers whenever Overmind tells components to render again. It can have multiple mutations related to it.
overmind/actions.js
1
export const onInitializeOvermind = async ({ state, effects }, overmind) => {
2
overmind.addFlushListener(effects.history.addMutations)
3
}
Copied!
Last modified 5mo ago
Copy link