feat: Don't reject m.request Promise if extract callback supplied (#2006)
This commit is contained in:
parent
e90f14ebe0
commit
80b6a1af0d
4 changed files with 36 additions and 3 deletions
|
|
@ -20,6 +20,7 @@
|
|||
- API: `m.redraw()` is always asynchronous ([#1592](https://github.com/MithrilJS/mithril.js/pull/1592))
|
||||
- API: `m.mount()` will only render its own root when called, it will not trigger a `redraw()` ([#1592](https://github.com/MithrilJS/mithril.js/pull/1592))
|
||||
- API: Assigning to `vnode.state` (as in `vnode.state = ...`) is no longer supported. Instead, an error is thrown if `vnode.state` changes upon the invocation of a lifecycle hook.
|
||||
- API: `m.request` will no longer reject the Promise on server errors (eg. status >= 400) if the caller supplies an `extract` callback. This gives applications more control over handling server responses.
|
||||
|
||||
#### News
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue