File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1987,6 +1987,10 @@ You can also trigger a specific "action" instead of a normal re-render:
1987
1987
Communication Between Components: Emitting Events
1988
1988
-------------------------------------------------
1989
1989
1990
+ .. versionadded :: 2.8
1991
+
1992
+ The ability to emit events was added in Live Components 2.8.
1993
+
1990
1994
Events allow you to communicate between any two components that live
1991
1995
on your page.
1992
1996
@@ -2178,6 +2182,11 @@ Suppose the user updates the ``listName`` model and the parent component
2178
2182
re-renders. In this case, the child component will *not * re-render by design:
2179
2183
each component lives in its own universe.
2180
2184
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
+
2181
2190
However, if the user adds a *new * todo item then we *do * want the ``todo_footer ``
2182
2191
child component to re-render: using the new ``count `` value. To trigger this,
2183
2192
in the ``todo_footer `` component, add the ``updateFromParent `` option::
You can’t perform that action at this time.
0 commit comments