-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat: async SSR #16748
New issue
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
feat: async SSR #16748
Conversation
…undary-error-message
This reverts commit 3ec461b.
…velte into adjust-boundary-error-message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me so far, just suggested a few tweaks to simplify the code.
packages/svelte/src/compiler/phases/3-transform/server/visitors/AwaitExpression.js
Show resolved
Hide resolved
const left = b.id('$$payload.select_value'); | ||
|
||
if (value.type === 'Attribute' && value.value !== true) { | ||
select_with_value_async ||= (Array.isArray(value.value) ? value.value : [value.value]).some( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
select_with_value_async ||= (Array.isArray(value.value) ? value.value : [value.value]).some( | |
select_with_value_async ||= [value.value].flat().some( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eh the existing version is marginally more efficient and tbh both of them are extremely confusing to me so I'll go with the more efficient version 😆
Co-authored-by: Rich Harris <rich.harris@vercel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's gooooooo
Before submitting the PR, please make sure you do the following
feat:
,fix:
,chore:
, ordocs:
.packages/svelte/src
, add a changeset (npx changeset
).Tests and linting
pnpm test
and lint the project withpnpm lint