3 ms·
But how does Mithril know that status changes? How does it know you just changed the variable?
by Kiro 9y ago
But how does Mithril know that status changes? How does it know you just changed the variable?
- pygy_ 9y agoBy default, Mithril redraws the app after DOM events fire (in this case `onchange={filterHandler(func)}`), and when ajax requests are complete (using the `m.request()` XHR wrapper). You can also manually trigger a redraw by using `m.redraw()`, but it is rarely needed.