        );
        this.updateArticles(this.config.params);
    }
    async onChangeParams(nextParams: IParams) {
        await this.updateArticles(nextParams);
    }
    async updateArticles(params: IParams) {
        const currentPage = params && params.page ? parseInt(params.page, 10) : 1;
        const count = 5;
        const articles = await this.config.api.articles({ offset: (currentPage - 1) * count, limit: count });