mirror of
https://github.com/flarum/core.git
synced 2025-07-11 20:06:23 +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:
@ -12,9 +12,7 @@ import listItems from 'flarum/helpers/listItems';
|
||||
* - `post`
|
||||
*/
|
||||
export default class PostUser extends Component {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
|
||||
init() {
|
||||
/**
|
||||
* Whether or not the user hover card is visible.
|
||||
*
|
||||
|
Reference in New Issue
Block a user