score:2

I face the same issue and I change the import object from unstable_Profiler to Profiler directly and it works.

// import React, { unstable_Profiler as Profiler }  from 'react';
import React, { Profiler }  from 'react';

const App = () => (
  <div>
    <Profiler>
      <OtherComponents />
    </Profiler>
  </div>
)

I check the test scenario of Profiler here at github.


Related Query

More Query from same tag