Future wrapper where anything rendered in its child will appear as child of the node.
All common components (Div
, Button
, etc.) uses this internally.
Use for accessing the thread local that determines whether or not DOM
futures being dropped should try to detach their nodes from the parent.
Rust’s drop glue drops struct fields in order of declaration,
so as the last field, we put a struct that will unset the thread local
when dropped.
Future wrapper where anything rendered in its child will appear as a sibling of a node.
This is only used for making the DynamicList
in async_ui_web
.