Skip to content

Commit 5efbfa8

Browse files
docs: Updated docs to include usage of $bindable for bidirectional bindings and its possible riscs (#17121)
* docs: clarify usage of $bindable for bidirectional bindings and its possivle riscs * Update documentation/docs/02-runes/06-$bindable.md --------- Co-authored-by: Rich Harris <[email protected]>
1 parent 6ae3e90 commit 5efbfa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/02-runes/06-$bindable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: $bindable
44

55
Ordinarily, props go one way, from parent to child. This makes it easy to understand how data flows around your app.
66

7-
In Svelte, component props can be _bound_, which means that data can also flow _up_ from child to parent. This isn't something you should do often, but it can simplify your code if used sparingly and carefully.
7+
In Svelte, component props can be _bound_, which means that data can also flow _up_ from child to parent. This isn't something you should do often — overuse can make your data flow unpredictable and your components harder to maintain — but it can simplify your code if used sparingly and carefully.
88

99
It also means that a state proxy can be _mutated_ in the child.
1010

0 commit comments

Comments
 (0)