File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ class Profiler extends React.Component<ProfilerProps> {
55
55
}
56
56
57
57
const activeSpan = getActiveSpan ( ) ;
58
- if ( activeSpan ) {
58
+ if ( activeSpan && ! this . _mountSpan ) {
59
59
this . _mountSpan = startInactiveSpan ( {
60
60
name : `<${ name } >` ,
61
61
op : REACT_MOUNT_OP ,
@@ -80,7 +80,7 @@ class Profiler extends React.Component<ProfilerProps> {
80
80
// See what props haved changed between the previous props, and the current props. This is
81
81
// set as data on the span. We just store the prop keys as the values could be potenially very large.
82
82
const changedProps = Object . keys ( updateProps ) . filter ( k => updateProps [ k ] !== this . props . updateProps [ k ] ) ;
83
- if ( changedProps . length > 0 ) {
83
+ if ( changedProps . length > 0 && ! this . _updateSpan ) {
84
84
const now = timestampInSeconds ( ) ;
85
85
this . _updateSpan = startInactiveSpan ( {
86
86
name : `<${ this . props . name } >` ,
You can’t perform that action at this time.
0 commit comments