lundi 18 novembre 2019

How to reload the data in an ember-light-table from the database without a page refresh

Currently I have an ember-light table which is connected to a model from a django database. New things are pushed into this database all the time and I need my table to be up to date.

At the moment I refresh the page every minute which fetches from the database if the cache is old (using store.query). However, this causes the page to reload everything and the page goes blank for a while.

Is it possible to reload the data from the django db and update the table and have the table stay on screen the whole time?

Route:

  actions: {
  refresh: function () {
    this.refresh();
  }
},



Aucun commentaire:

Enregistrer un commentaire