Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React native 0.59 warning: PerformanceLogger: Attempting to start a timespan that already exists

Tags:

react-native

After upgrading to 0.59 (we are currently at v0.59.5) we started getting these warnings:

'PerformanceLogger: Attempting to end a timespan that has already ended ', 'renderApplication_React_render'

and

'PerformanceLogger: Attempting to start a timespan that already exists ', 'renderApplication_React_render'

Anyone seeing the same or knows how to fix it?

like image 827
Simon Bengtsson Avatar asked Apr 25 '19 08:04

Simon Bengtsson


1 Answers

You mentioned that you don't use react-native-navigation, but do you use react-navigation?

I was getting this message in the console when following a deep link into my app.

The issue was that I had forgotten to set android:launchMode="singleTask" in AndroidManifest.xml.

I had an event listener in componentDidMount on my navigator subscribed to didFocus, but the callback for the listener wasn't firing and I was only getting those warnings in the console.

like image 160
Rob Avatar answered Oct 06 '22 00:10

Rob