forceResetDetachedSensor method
void
forceResetDetachedSensor()
Call to repair / re-initialize a ResizeSensor that was detached from the DOM when it mounted.
How do I know if I need to call this?
If you have a ResizeSensor that is not emitting its ResizeSensorPropsMixin.onResize events,
then the sensor was most likely mounted detached from the DOM.
In that situation, set the ResizeSensorPropsMixin.onDetachedMountCheck callback and use a true
return value to give your application knowledge that a call to this method (at a time when you are
sure that the sensor has become attached to the DOM) to repair the ResizeSensorPropsMixin.onResize behavior.
See: ResizeSensorPropsMixin.onDetachedMountCheck for more information.
Implementation
void forceResetDetachedSensor() => _reset();