mirror of
https://github.com/flarum/core.git
synced 2025-10-14 16:34:26 +02:00
Initialise component state in init() instead of constructor
This allows component state to be overridden via monkey-patch. ref #246
This commit is contained in:
@@ -8,8 +8,8 @@ import CommentPost from 'flarum/components/CommentPost';
|
||||
* profile.
|
||||
*/
|
||||
export default class PostsUserPage extends UserPage {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
init() {
|
||||
super.init();
|
||||
|
||||
/**
|
||||
* Whether or not the activity feed is currently loading.
|
||||
|
Reference in New Issue
Block a user