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
I am using SvelteKit with the adapter/node.
I am connecting to an external API and cache the responses.
On the first request (no cache) I return the promises of the api calls.
All of them are resolved correctly.
On the second request (valid cache) I return the cache value wrapped in a Promise.resolve().
If I use that for only one Promise, this promise resolves in the {#await} block.
If I have more than one Promise, only the first promise resolves in the {#await} block, all others show the loading state.
Describe the bug
I am using SvelteKit with the adapter/node.
I am connecting to an external API and cache the responses.
On the first request (no cache) I return the promises of the api calls.
All of them are resolved correctly.
On the second request (valid cache) I return the cache value wrapped in a
Promise.resolve()
.If I use that for only one Promise, this promise resolves in the
{#await}
block.If I have more than one Promise, only the first promise resolves in the
{#await}
block, all others show the loading state.Reproduction
Stackblitz: https://stackblitz.com/edit/sveltejs-kit-template-default-fgdj1s?file=src/routes/+page.server.js
the second promise never resolves
got to
/only-one
=> everything resolves correctlyLogs
No response
System Info
Severity
serious, but I can work around it
Additional Information
can be worked around with a promise wrapper
The text was updated successfully, but these errors were encountered: