Any plans to un-deprecate
DOMSideEffect
or bring
DOMScope
to regular
SideEffect
? My use-case involves wrapping external JS component library in
#kmdc project and I need an effect which runs on
every
composition and provides access to native DOM element to sync-up the compose state with the external JS component.
ā¢
DisposableEffect
almost works as it has
scopeElement
, but it skips the initial composition
ā¢
SideEffect
runs on all compositions, but doesn't provide access to
scopeElement
ā¢
DOMSideEffect
covers everything I need, but is deprecated
EDIT: looks like initial composition is "skipped" on my
DisposableEffect
handler due to missing js objects that I initialise in
attrs::ref
lambda. Shouldn't
attrs::ref
be invoked before
DisposableEffect
?