# The listview items refresh a few minutes after received services data

**URL:** <https://forum.ionicframework.com/t/the-listview-items-refresh-a-few-minutes-after-received-services-data/65519>\
**Category:** ionic-v3\
**Created:** [October 3, 2016, 8:34am UTC](https://forum.ionicframework.com/t/the-listview-items-refresh-a-few-minutes-after-received-services-data/65519 "2016-10-03T08:34:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dtrujo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dtrujo/32/81499_2.png) [@dtrujo](https://forum.ionicframework.com/u/dtrujo)\
**Post date:** [October 3, 2016, 8:34am UTC](https://forum.ionicframework.com/t/the-listview-items-refresh-a-few-minutes-after-received-services-data/65519/1 "2016-10-03T08:34:09Z")

</div>

Hello! After updating my ionic project 2 RC0 I found several problems. One of them is that a listview that recibde firebase data takes several minutes to refresh, but if we look at the console, the data arrives quickly! Does anyone know why this happens?

**SERVICIO**

```
/**
    [exercises description]
    Get all exercises in the firebase database using observer
    to detect when element has been added or modified.
  */
  exercises(): Observable<any> {
    return Observable.create(observer => {

      var userId = this.fireAuth.currentUser.uid;
      this.exercisesRef = this.userProfile.child(userId + '/exercises');

      let listener = this.exercisesRef.on('child_added', snapshot => {

        let data = snapshot.val();
        data.id = snapshot.key;

        console.log(data);
        observer.next(data);

      }, observer.error);

      return () => {
        this.exercisesRef.off('child_added', listener);
      };
    });
  }

```

**CONTROLLER**

```
  /**
    [ngOnInit description]
    This event fire any time when user access to the view
  */
  ngOnInit() {

    // get all exercises using an observer and add
    // exercises using push method with the value
    // retrieved of firebase
   this.exerciseData.exercises().subscribe(exercise => {
     this.exercises.push(exercise);
   });
  }

```

**VIEW**

```
  <ion-item-sliding *ngFor="let exercise of exercises">

    <ion-item (click)="exerciseTapped($event, exercise)">
      {{exercise.Name}} <br/> <span class='exerciseDate'>{{exercise.Date}}</span>
      <div class="item-note" item-right>
        {{exercise.Pr}}
        <span *ngIf="exercise.Type === 'Weight' ">Kg</span>
        <span *ngIf="exercise.Type === 'Time' ">Min</span>
        <span *ngIf="exercise.Type === 'Reps' ">Reps</span>
      </div>
    </ion-item>

    <ion-item-options side="right">
      <button ion-button color="danger" (click)="removeExercise(exercise)"><ion-icon name="md-trash"></ion-icon></button>
      <button ion-button color="primary"><ion-icon name="md-ribbon"></ion-icon></button>
    </ion-item-options>

  </ion-item-sliding>

</ion-list>

```

Thanks in advanced

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/9/d/9d73a234aaa154b9cbb80b2e0526d30800a45de9.png)

---

<div class="post-metadata">

**Author:** ![VarunDusane](https://avatars.discourse-cdn.com/v4/letter/v/b782af/32.png) [@VarunDusane](https://forum.ionicframework.com/u/VarunDusane)\
**Post date:** [October 3, 2016, 6:20pm UTC](https://forum.ionicframework.com/t/the-listview-items-refresh-a-few-minutes-after-received-services-data/65519/2 "2016-10-03T18:20:29Z")

</div>

sorry i dont think this is proper way to ask this question but do you know how to fetch firebase storage files in listview in ionic?

---

<div class="post-metadata">

**Author:** ![dtrujo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dtrujo/32/81499_2.png) [@dtrujo](https://forum.ionicframework.com/u/dtrujo)\
**Post date:** [October 4, 2016, 7:59am UTC](https://forum.ionicframework.com/t/the-listview-items-refresh-a-few-minutes-after-received-services-data/65519/3 "2016-10-04T07:59:01Z")

</div>

I am sorry! How is the right way ?, do not know if you’ve looked at the code but is clearly seen as it is collected. This code works exactly like the Beta 11.

---

<div class="post-metadata">

**Author:** ![VarunDusane](https://avatars.discourse-cdn.com/v4/letter/v/b782af/32.png) [@VarunDusane](https://forum.ionicframework.com/u/VarunDusane)\
**Post date:** [October 4, 2016, 9:07am UTC](https://forum.ionicframework.com/t/the-listview-items-refresh-a-few-minutes-after-received-services-data/65519/4 "2016-10-04T09:07:42Z")

</div>

i mean to say my question not yours…

---

<div class="post-metadata">

**Author:** ![aaronksaunders](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aaronksaunders/32/13729_2.png) [@aaronksaunders](https://forum.ionicframework.com/u/aaronksaunders)\
**Post date:** [October 4, 2016, 3:27pm UTC](https://forum.ionicframework.com/t/the-listview-items-refresh-a-few-minutes-after-received-services-data/65519/5 "2016-10-04T15:27:54Z")

</div>

> [@Ionic 2 rc0 not refresh listview received firebase data](https://forum.ionicframework.com/t/ionic-2-rc0-not-refresh-listview-received-firebase-data/65716/2):
>
> there appears to be zones issue with this release, if you look at my sample project, you will see that I had to wrap the firebase calls using ngZone to get it to work. this.ngZone.run(() =\> { if (\_currentUser) { console.log("in auth subscribe", \_currentUser) this.currentUser = \_currentUser; this.assetList = this.doShowList(); } else { this.currentUser = null } this.authChecked = true; });
