Closed KaKi87 closed 6 months ago
? That's how it's meant to be used, unless you wrote a typo somewhere. The content before {:then foo}
shows until data.foo
is resolved. Then {:then foo}
shows.
During CSR yes, but during SSR, the server is supposed to wait for the Promise
before rendering.
What version of Kit are you on? I'd think you'd be awaiting the promise server-side then. Are you going along the lines of this?: https://kit.svelte.dev/docs/load#streaming-with-promises
They changed the default behavior of this in newer version. so I'm thinking you may be on the newer version that does not await the first returned value in page load.?
Indeed I am. So you're not going to follow this change ?
Indeed I am. So you're not going to follow this change ?
I'm not a maintainer, I'm just trying to help. 👍 I wouldn't think that it is the adapter that'd be ignoring an implicit await
, but I don't know the guts enough. Best of luck
Sorry for the confusion :sweat_smile: And thanks for trying :pray:
Hi,
When using
{#await data.foo}
in template, the content between before{:then foo}
is displayed before SSR, instead of the content after it.Thanks