Skip to content

bug: ion-refresher immediately disappearing #5456

Closed

Description

@sb8244

Type: bug

Ionic Version: 2.x

Platform: all

A refresher exists like:

  <ion-refresher (refresh)="refresh($event, refresher)" [refreshingText]="'Getting Fresh'" [pullingText]="'Freshen it up'">
  </ion-refresher>

which subscribes to an Observable that is just a glorified Http wrapper:

  refresh(refresher) {
    this.todoist.load().subscribe(() => refresher.complete());
  }

load is defined as:

  load() {
    return this.http.get(this._todoistUrl())
      .retry(3)
      .delay(2000)
      .map(res => res.json().Items.map(item => new TodoItem(item)))
      .map((items: Array<TodoItem>) => {
        this.dueItems = orderByDueDate(Array.from(items.filter(item => item.overdue)));
        this.futureItems = orderByDueDate(Array.from(items.filter(item => !item.overdue)));
        return items;
      });
  }

However, the ion-refresher immediately disappears after pulling. I don't believe there is anything missing from implementation according to docs.

Activity

  1. sb8244 commented on Feb 15, 2016

    @sb8244
    Author

    It also appears that (starting) is not firing

  2. brandyscarney commented on Feb 16, 2016

    @brandyscarney
    Member

    Thanks for the issue! Closing this issue as a duplicate of: #5207

  3. locked and limited conversation to collaborators on Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions