renderedCallback
fires inconsistently after disconnect+reconnect in native lifecycle
#4057
Labels
renderedCallback
fires inconsistently after disconnect+reconnect in native lifecycle
#4057
In native lifecycle, if you have a list of components using
for:each
, and the list is reordered (which causes LWC to remove+reconnect a list item), you get the following result:renderedCallback
fires for the list item componentrenderedCallback
does not fire for any children of the list item componentRepro: nolanlawson@0c7dff5
It feels like we should either 1) consistently fire
renderedCallback
or 2) consistently not firerenderedCallback
in this case.In synthetic lifecycle, neither
renderedCallback
norconnectedCallback
nordisconnectedCallback
would fire after list reordering.Note: this also applies to manually calling
removeChild
+appendChild
, not justfor:each
. But it's most commonly seen infor:each
.The text was updated successfully, but these errors were encountered: