title: Vue.js - function not executed when data are updated
body: <p>I have this function code in my vue component methods that will remove the customers data if a button is clicked and show a chrome notification.</p>
  <pre><code>        deleteCustomer(id) {
              console.log('deleting customer:' + id);
              db.customers.delete(id).then( () =&gt; {
              console.log('customer '+ id +' deleted!');
              browser.notifications.create('deleted',{
                  type: 'basic',
                  iconUrl: 'icons/128.png',
                  title: 'Data removal',
                  message: 'data removed with success!'
              });
              this.viewCustomers();
             });
          },
  </code></pre>
  <p>At the end of the function I'm calling another method that is supposed to call a dexie.js instance to show in a table all the customers data that are stored. When the component is mounted, all work fine with the <code>viewCustomers</code> function and the table is populated correctly. What I need to fix is that the method is not called after data deletion and the table isn't updating. How I can fix this, is there a vue function I can use or any code modification that can solve this problem?</p>