Skip to content

Commit 546cc7d

Browse files
committed
move this out into separate PR (#11548)
1 parent 0c05de4 commit 546cc7d

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -133,23 +133,6 @@ In Svelte 4 syntax, every property (declared via `export let`) is bindable, mean
133133

134134
Setting the `accessors` option to `true` makes properties of a component directly accessible on the component instance. In runes mode, properties are never accessible on the component instance. You can use component exports instead if you need to expose them.
135135

136-
### Props may update with same value
137-
138-
Svelte 4 did safe equality checks on properties by default. That meant that even if you update a value, and part of of tha value is a primitive passed as a property, and that part did not change, it would not trigger a property update.
139-
140-
```svelte
141-
<script>
142-
let value = { count: 1 };
143-
</script>
144-
<button on:click={() => {
145-
// updates to same value, child will not receive an update
146-
value = { count: 1 };
147-
}}>update</button>
148-
<Child prop={value.count}>
149-
```
150-
151-
In Svelte 5, the above would trigger an update in the child component. Note that Svelte 4 by default did always update properties if they were not primitives (i.e. objects or arrays for example).
152-
153136
## Other breaking changes
154137

155138
### Stricter `@const` assignment validation

0 commit comments

Comments
 (0)