docs: mithril does not autoredraw on Promise resolution. (#1570)

This commit is contained in:
alexander_travov 2017-01-31 21:02:10 +03:00 committed by Pat Cavit
parent 70ee93d6ae
commit 402ae96d37

View file

@ -89,7 +89,7 @@ m.route(document.body, "/", {
### When Mithril does not redraw
Mithril does not redraw after `setTimeout`, `setInterval`, `requestAnimationFrame` and 3rd party library event handlers (e.g. Socket.io callbacks). In those cases, you must manually call [`m.redraw()`](redraw.md).
Mithril does not redraw after `setTimeout`, `setInterval`, `requestAnimationFrame`, raw `Promise` resolutions and 3rd party library event handlers (e.g. Socket.io callbacks). In those cases, you must manually call [`m.redraw()`](redraw.md).
Mithril also does not redraw after lifecycle methods. Parts of the UI may be redrawn after an `oninit` handler, but other parts of the UI may already have been redrawn when a given `oninit` handler fires. Handlers like `oncreate` and `onupdate` fire after the UI has been redrawn.