mirror of
https://github.com/flarum/core.git
synced 2025-10-12 23:44:27 +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:
@@ -13,9 +13,7 @@ import Placeholder from 'flarum/components/Placeholder';
|
||||
* to send along in the API request to get discussion results.
|
||||
*/
|
||||
export default class DiscussionList extends Component {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
|
||||
init() {
|
||||
/**
|
||||
* Whether or not discussion results are loading.
|
||||
*
|
||||
|
Reference in New Issue
Block a user