Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add integration with nuxt asyncData/fetch #86

Open
Kolobok12309 opened this issue Jan 14, 2020 · 0 comments
Open

Add integration with nuxt asyncData/fetch #86

Kolobok12309 opened this issue Jan 14, 2020 · 0 comments

Comments

@Kolobok12309
Copy link

Kolobok12309 commented Jan 14, 2020

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant