Create a gist now

Instantly share code, notes, and snippets.

Run global side-effects in-line with Mithril's lifecycle
export default function mSideEffects(lifecycle){
m.mount(document.createDocumentFragment(), Object.assign({
view : () => ''
},
lifecycle
))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment