Skip to content

Commit 49c7a5d

Browse files
fix(lint): disable readonly props for profiler
1 parent bff0b5e commit 49c7a5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/client/ui/functions/profiler.ts

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ function getName(callback: Callback): string {
2727
export function profileAllComponents(): void {
2828
const profiledComponents = new Map<FunctionComponent, FunctionComponent>();
2929

30+
// eslint-disable-next-line react/prefer-read-only-props -- We need to modify the props
3031
React.createElement = ((...args: Parameters<typeof React.createElement>) => {
3132
const [component] = args;
3233

0 commit comments

Comments
 (0)