We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, I'm seeing this code:
export default function (adapters) { return { name: '@macfja/svelte-adapter-multi', async adapt(argument) { await adapters.forEach(item => Promise.resolve(item).then(resolved => resolved.adapt(argument))) } }; }
And I think it should be
await Promise.all(adapters.forEach...)
await adapters.forEach does not await for the promises
await adapters.forEach
The text was updated successfully, but these errors were encountered:
I think it's even something like:
await Promise.all(adapters.map(item => Promise.resolve(item).then(resolved => resolved.adapt(argument))))
But good catch, I will update the adapter with that
Sorry, something went wrong.
Fix #1 - Make Async/Await work
0a4070b
2762848
No branches or pull requests
Hello, I'm seeing this code:
And I think it should be
await adapters.forEach
does not await for the promisesThe text was updated successfully, but these errors were encountered: