vue-wait icon indicating copy to clipboard operation
vue-wait copied to clipboard

Add integration with nuxt asyncData/fetch

Open Kolobok12309 opened this issue 5 years ago • 0 comments

Mb for nuxt asyncData api, because waitFor not working for this Something like this

export default function (waiter, func) {
  return async (...args) => {
    const { app } = args[0];

    try {
      app.wait.start(waiter);
      return await func.apply(this, args);
    } finally {
      app.wait.end(waiter);
    }
  };
};

Or if vue-wait have this function, sorry and help pls)

Kolobok12309 avatar Jan 14 '20 08:01 Kolobok12309