f / f/vue-wait

Add integration with nuxt asyncData/fetch

Open
#86 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2k
Forks
98
PR merge metrics
No merged PRs in 30d

Description

Mb for nuxt asyncData api, because `waitFor` not working for this
Something like this
```js
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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.