You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.elementdefParent():
returnidom.html.div(idom.html.div(Child()))
@idom.elementdefChild():
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.
The text was updated successfully, but these errors were encountered:
This occurs because the
path
attribute of aLayoutUpdate
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:Where calling
set_state
here triggers an update that fails to render in the client.The text was updated successfully, but these errors were encountered: