mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Initialise component state in init() instead of constructor
This commit is contained in:
parent
d333a60aa4
commit
f199620df8
|
@ -2,8 +2,8 @@ import Component from 'flarum/Component';
|
|||
import PostStream from 'flarum/components/PostStream';
|
||||
|
||||
export default class DiscussionPage extends Component {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
init() {
|
||||
super.init();
|
||||
|
||||
/**
|
||||
* The discussion that is being viewed.
|
||||
|
|
Loading…
Reference in New Issue
Block a user