-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
docs: note default value breaking change to bind:
in runes mode
#12412
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
Conversation
|
I guess this can be mentioned as well (kinda the same but worth mentioning?) - My grammer sux soooo, forgive me :D: <script>
import Something from "./Something.svelte";
- let boundValues = [];
+ let boundValues = $state(Array(3).fill(null)); // fill it with anything else other than undefined.
</script>
{#each {length: 3} as _, i}
<Something bind:value={boundValues[i]}></Something>
{/each} Note the Current changeset's focus is more around the default value propagation but this will also put a focus on the fact that we have to change the initial variable that we are binding to - which is specific to |
sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md
Outdated
Show resolved
Hide resolved
…breaking-changes.md Co-authored-by: Rich Harris <[email protected]>
I think the |
…2412) * docs: note default value breaking change to `bind:` in runes mode #11400 (comment) * Update sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md Co-authored-by: Rich Harris <[email protected]> --------- Co-authored-by: Rich Harris <[email protected]>
…2412) * docs: note default value breaking change to `bind:` in runes mode #11400 (comment) * Update sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md Co-authored-by: Rich Harris <[email protected]> --------- Co-authored-by: Rich Harris <[email protected]>
#11400 (comment)
Before submitting the PR, please make sure you do the following
feat:
,fix:
,chore:
, ordocs:
.Tests and linting
pnpm test
and lint the project withpnpm lint