import { rehydrate } from 'overmind'
export const onInitializeOvermind = ({ state, effects }) => {
// Grab mutations from a server rendered version
const mutations = window.__OVERMIND_MUTATIONS
rehydrate(state, mutations)
// Grab a previous copy of the state, for example stored in
rehydrate(state, effects.storage.get('previousState') || {})