mirror of
https://github.com/flarum/framework.git
synced 2025-04-26 06:34:06 +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';
|
import PostStream from 'flarum/components/PostStream';
|
||||||
|
|
||||||
export default class DiscussionPage extends Component {
|
export default class DiscussionPage extends Component {
|
||||||
constructor(...args) {
|
init() {
|
||||||
super(...args);
|
super.init();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The discussion that is being viewed.
|
* The discussion that is being viewed.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user