You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🐛 The bug
UseAsync checks for x instanceof Promise which isn't completely reliable. Should probably check for .then instead to cover other Promise libraries. This makes Nuxt not fetch the data.
🛠️ To reproduce
For example, using the Nuxt Content Module:
🐛 The bug
UseAsync checks for
x instanceof Promise
which isn't completely reliable. Should probably check for.then
instead to cover other Promise libraries. This makes Nuxt not fetch the data.🛠️ To reproduce
For example, using the Nuxt Content Module:
This is because, for whatever reason, the
.fetch()
function from the content module does not return aninstanceof Promise
.🌈 Expected behaviour
Expect it to fetch the data on the server.
The text was updated successfully, but these errors were encountered: