Skip to content

Commit 47906c4

Browse files
committed
minor #929 Added warning for list of embedded components (florentdestremau)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- Added warning for list of embedded components | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Tickets | <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT As discussed on slack with `@weaverryan` , I think the `key` trick for lists of embedded components is an easy footgun and thus should be pointed as soon as the docs introduce the subject. I'm open for better wording or placement. Commits ------- c99153a Added warning for list of embedded components
2 parents 6b20ca7 + c99153a commit 47906c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2354,8 +2354,9 @@ cause the child to re-render (but it *can* - keep reading). Or, if
23542354
a model in a child updates, it won't also update that model in its parent
23552355
(but it *can* - keep reading).
23562356

2357-
The parent-child system is *smart*. And with a few tricks, you can make
2358-
it behave exactly like you need.
2357+
The parent-child system is *smart*. And with a few tricks
2358+
(:ref:`such as the key prop for lists of embedded components <rendering-quirks-with-list-of-embedded-components>`),
2359+
you can make it behave exactly like you need.
23592360

23602361
.. _child-component-independent-rerender:
23612362

0 commit comments

Comments
 (0)