barneycarroll / mithril.exitable.js

Exit animations for Mithril components: provide controllers with an `exit` hook which will trigger when the component disappears from the virtual DOM (but before it's removed from live DOM), locking the draw process while you perform animations.
MIT License
22 stars 3 forks source link

Proposed fix for #16 #17

Closed barneycarroll closed 8 years ago

barneycarroll commented 8 years ago

The root view trap can't capture a fully computed virtual DOM snapshot because of Mithril's deferred computation of nested components. This should solve the problem by capturing fully computed snapshots post render.