Skip to content

Commit 9e45d2a

Browse files
committed
adding note about edge case when child component LiveProp changes on the server
1 parent e4728dc commit 9e45d2a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/LiveComponent/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,6 +1234,10 @@ component (because `data-model` takes precedence over `name`). But if
12341234
any parent components have a `markdown_value` model _or_ a `post.content`
12351235
model (normalized from `post[content`]`), their model will also be updated.
12361236

1237+
**NOTE**: If you _change_ a `LiveProp` ofa child component on the server
1238+
(e.g. during re-rendering or via an action), that change will _not_ be
1239+
reflected on any parent components that share that model.
1240+
12371241
### Full Embedded Component Example
12381242

12391243
Let's look at a full, complex example of an embedded component. Suppose

0 commit comments

Comments
 (0)