constructor()

in src/app/activities-widget.js [45:63]


  constructor(props) {
    super(props);
    const {registerWidgetApi} = props;

    this.state = {
      isConfiguring: false,
      isLoading: false,
      loadingError: {}
    };

    registerWidgetApi({
      onConfigure: () => this.setState({
        isConfiguring: true,
        isLoading: false,
        loadingError: {}
      }),
      onRefresh: () => this.tryLoadNewActivities()
    });
  }