Currently when you parent pagelet and it re-renders the layout the childs will not re-render. This needs to be done manually. It might make more sense to have the child pagelets listen to parent's render event and trigger a render after that.
As an additional optimization we could be given the new DOM tree, and modify that before it's added to the root element of the parent node so we have to do less DOM manipulation. Of course this wouldn't be needed if we adopted something like a shadow/virtual dom.
Currently when you parent pagelet and it re-renders the layout the childs will not re-render. This needs to be done manually. It might make more sense to have the child pagelets listen to parent's render event and trigger a render after that.
As an additional optimization we could be given the new DOM tree, and modify that before it's added to the root element of the parent node so we have to do less DOM manipulation. Of course this wouldn't be needed if we adopted something like a shadow/virtual dom.