addMutationListener
export const onInitializeOvermind = async ({ state, localStorage }, overmind) => {
overmind.addMutationListener((mutation) => {
if (mutation.path.indexOf('todos') === 0) {
localStorage.set('todos', state.todos)
}
})
}Last updated