mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
update changes file
This commit is contained in:
@@ -7,10 +7,9 @@
|
|||||||
* 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`
|
- When implementing your own, you *must* call `super.<hook>(vnode)` to update `this.attrs`
|
||||||
- `component.render` is gone
|
- `component.render` now doesn't use the current state instance
|
||||||
* Application
|
- this is because of how Mithril v2 works
|
||||||
- New different methods
|
- now calls mithril on the component class (not instance) and its props
|
||||||
- `app.bus` for some event hooking
|
|
||||||
* Translator
|
* Translator
|
||||||
- Added `app.translator.transText`, automatically extracts text from `translator.trans` output
|
- Added `app.translator.transText`, automatically extracts text from `translator.trans` output
|
||||||
* Utils
|
* Utils
|
||||||
|
Reference in New Issue
Block a user