Skip to content

Commit 36ee3d6

Browse files
feat(react): Make Profiler _mountSpan attribute protected (#3904)
Done for React Native SDK. Co-authored-by: Abhijeet Prasad <[email protected]>
1 parent ecf8098 commit 36ee3d6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/react/src/profiler.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,14 @@ export type ProfilerProps = {
8686
* spans based on component lifecycles.
8787
*/
8888
class Profiler extends React.Component<ProfilerProps> {
89+
/**
90+
* The span of the mount activity
91+
* Made protected for the React Native SDK to access
92+
*/
93+
protected _mountSpan: Span | undefined = undefined;
94+
8995
// The activity representing how long it takes to mount a component.
9096
private _mountActivity: number | null = null;
91-
// The span of the mount activity
92-
private _mountSpan: Span | undefined = undefined;
9397

9498
// eslint-disable-next-line @typescript-eslint/member-ordering
9599
public static defaultProps: Partial<ProfilerProps> = {

0 commit comments

Comments
 (0)