Skip to content

Conversation

elliott-with-the-longest-name-on-github
Copy link
Contributor

Before submitting the PR, please make sure you do the following

  • It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
  • Prefix your PR title with feat:, fix:, chore:, or docs:.
  • This message body should clearly illustrate what problems it solves.
  • Ideally, include a test that fails without this PR but passes with it.
  • If this PR changes code within packages/svelte/src, add a changeset (npx changeset).

Tests and linting

  • Run the tests with pnpm test and lint the project with pnpm lint

Copy link
Member

@Ocean-OS Ocean-OS left a 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.

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(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
select_with_value_async ||= (Array.isArray(value.value) ? value.value : [value.value]).some(
select_with_value_async ||= [value.value].flat().some(

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 😆

Copy link
Member

@Rich-Harris Rich-Harris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's gooooooo

@Rich-Harris Rich-Harris merged commit b8fd326 into main Sep 17, 2025
18 checks passed
@Rich-Harris Rich-Harris deleted the adjust-boundary-error-message branch September 17, 2025 21:49
@github-actions github-actions bot mentioned this pull request Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants