Skip to content

Commit 0df029f

Browse files
committed
fix(react): remove unnecessary data field
1 parent db6de28 commit 0df029f

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

packages/react/src/profiler.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ const getInitActivity = (componentDisplayName: string): number | null => {
4545
if (tracingIntegration !== null) {
4646
// tslint:disable-next-line:no-unsafe-any
4747
const activity = (tracingIntegration as any).constructor.pushActivity(componentDisplayName, {
48-
data: {},
4948
description: `<${componentDisplayName}>`,
5049
op: 'react',
5150
});

packages/react/test/profiler.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ describe('withProfiler', () => {
6161
create(<ProfiledComponent />);
6262
expect(mockPushActivity).toHaveBeenCalledTimes(1);
6363
expect(mockPushActivity).toHaveBeenLastCalledWith(UNKNOWN_COMPONENT, {
64-
data: {},
6564
description: `<${UNKNOWN_COMPONENT}>`,
6665
op: 'react',
6766
});

0 commit comments

Comments
 (0)