Skip to content

Commit 007447c

Browse files
committed
adding versionadded
1 parent 4188033 commit 007447c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,6 +1987,10 @@ You can also trigger a specific "action" instead of a normal re-render:
19871987
Communication Between Components: Emitting Events
19881988
-------------------------------------------------
19891989

1990+
.. versionadded:: 2.8
1991+
1992+
The ability to emit events was added in Live Components 2.8.
1993+
19901994
Events allow you to communicate between any two components that live
19911995
on your page.
19921996

@@ -2178,6 +2182,11 @@ Suppose the user updates the ``listName`` model and the parent component
21782182
re-renders. In this case, the child component will *not* re-render by design:
21792183
each component lives in its own universe.
21802184

2185+
.. versionadded:: 2.8
2186+
2187+
The ``updateFromParent`` option was added in Live Components 2.8. Previously,
2188+
a child would re-render when *any* props passed into it changed.
2189+
21812190
However, if the user adds a *new* todo item then we *do* want the ``todo_footer``
21822191
child component to re-render: using the new ``count`` value. To trigger this,
21832192
in the ``todo_footer`` component, add the ``updateFromParent`` option::

0 commit comments

Comments
 (0)