over_react icon indicating copy to clipboard operation
over_react copied to clipboard

UIP-3018 ResizeSensor intermittent null error in _reset

Open greglittlefield-wf opened this issue 8 years ago • 1 comments

  • 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.

greglittlefield-wf avatar Feb 07 '18 17:02 greglittlefield-wf

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

rmconsole-wf avatar Feb 07 '18 17:02 rmconsole-wf