Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/react/src/profiler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export type ProfilerProps = {
includeUpdates?: boolean;
// props given to component being profiled.
updateProps: { [key: string]: unknown };

children: React.ReactNode;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be optional?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, will change.

};

/**
Expand Down Expand Up @@ -120,7 +122,6 @@ class Profiler extends React.Component<ProfilerProps> {
}

public render(): React.ReactNode {
// eslint-disable-next-line react/prop-types
return this.props.children;
}
}
Expand Down