Closed
Description
This occurs because the path
attribute of a LayoutUpdate
is determined to be {path-of-parent-element}/children/{index}
rather than {path-of-parent-element}/{path-within-element-model}/children/{index}
. In other words the position of a child element in the model of its parent is ignored. Thus the following breaks the updates:
@idom.element
def Parent():
return idom.html.div(idom.html.div(Child()))
@idom.element
def Child():
state, set_state = idom.hooks.use_state(...)
... # define something that will cause an update somehow
Where calling set_state
here triggers an update that fails to render in the client.
Metadata
Metadata
Assignees
Labels
No labels