Closed estrattonbailey closed 6 years ago
Could pass an option with methods as the return value from a route handler.
... // line 42 index.js function render (markup, pathname, customAnimation) { const mountNode = document.getElementById(root) const oldDom = document ...
Would need to provide something like this
const customAnimation = { onBeforeRender () { return new Promise((res, rej) => { // do work res(null) }) }, onAfterRender () { return new Promise((res, rej) => { // same res(null) }) } }
v4 (unreleased) already includes this
Could pass an option with methods as the return value from a route handler.
Would need to provide something like this