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 ResizeSensorProps.onResize events,
then the sensor was most likely mounted detached from the DOM.
In that situation, set the ResizeSensorProps.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 ResizeSensorProps.onResize behavior.
See: ResizeSensorProps.onDetachedMountCheck for more information.
Implementation
void forceResetDetachedSensor() => _reset();