over_react
over_react copied to clipboard
UIP-3018 ResizeSensor intermittent null error in _reset
- Issue Type: BUG
We're seeing stacktraces sometimes originating from ResizeSensor:
resize_sensor.dart ResizeSensorComponent._reset
resize_sensor.dart ResizeSensorComponent.componentDidMount.<anonymous function>
resize_sensor.dart _SafeAnimationFrameMixin.requestAnimationFrame.<anonymous function>
message: Uncaught exception: NullError: x is null
One potential cause of this is that _reset is being called after the component is unmounted, with the unmount taking place during the animation frame delay.
We should add a _isMounted check inside _reset to hopefully fix this.
It looks like you have not included any tickets in the title of this issue. Please create a ticket for this issue, or click a type to create one automatically: Task, Bug, Improvement