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
At the moment it's impossible to pass a ref to the underlying div element.
We should add an innerRef prop to FlexView and forward it as ref for the root div.
The text was updated successfully, but these errors were encountered:
slightly different proposal: use forwardRef and update the ref typings as appropriate to refer to the underlying <div />. Rationale: no need to have a reference to the View element itself (no API exposed as instance methods), while you often need a ref to the underlying div to do dirty DOM stuff
Even better: since FlexView has no "public API" on the class/component instance, no need to expose the ref to FlexView at all. Exposing the one to the underlying div is more than enough, as in:
typeFlexViewProps={// ... more propsref: React.Ref<HTMLDivElement>}
Description
At the moment it's impossible to pass a
ref
to the underlying div element.We should add an
innerRef
prop toFlexView
and forward it as ref for the root div.The text was updated successfully, but these errors were encountered: