Remove support for vnode.state = ...
- Remove docs for it - Remove tests for it - Add runtime check for unexpected reassignment, since we can't freeze the property (we internally have to be able to modify it)
This commit is contained in:
parent
e36a8db9d4
commit
19d2ba316c
6 changed files with 43 additions and 114 deletions
|
|
@ -18,6 +18,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.
|
||||
|
||||
#### News
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue