mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
Update changes
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
- Actual Promises are used now instead of `m.deferred`
|
- Actual Promises are used now instead of `m.deferred`
|
||||||
* Component
|
* Component
|
||||||
- Use new Mithril lifecycle hooks (`component.config` is gone)
|
- Use new Mithril lifecycle hooks (`component.config` is gone)
|
||||||
|
- When implementing your own, you *must* call `super.<hook>(vnode)` to update `this.attrs`
|
||||||
- `component.render` is gone
|
- `component.render` is gone
|
||||||
* Application
|
* Application
|
||||||
- New different methods
|
- New different methods
|
||||||
@@ -14,6 +15,7 @@
|
|||||||
- Added `app.translator.transText`, automatically extracts text from `translator.trans` output
|
- Added `app.translator.transText`, automatically extracts text from `translator.trans` output
|
||||||
* Utils
|
* Utils
|
||||||
- Changed `computed` util to require multiple keys to be passed as an array
|
- Changed `computed` util to require multiple keys to be passed as an array
|
||||||
|
- `SubtreeRetainer` now has an `update` method instead of `retain`, and its output is used in `onbeforeupdate` lifecycle hook
|
||||||
|
|
||||||
#### Forum
|
#### Forum
|
||||||
* Forum Application
|
* Forum Application
|
||||||
|
Reference in New Issue
Block a user