Merge pull request #1977 from isiahmeadows/remove-legacy-state

Remove support for `vnode.state = ...`
This commit is contained in:
Isiah Meadows 2017-10-04 18:00:16 -04:00 committed by GitHub
commit ae27c0ff18
6 changed files with 43 additions and 114 deletions

View file

@ -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