docs: mithril does not autoredraw on Promise resolution. (#1570)
This commit is contained in:
parent
70ee93d6ae
commit
402ae96d37
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue