mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-14 04:21:32 +08:00

* chore: added jsx-runtime plugin in eslint tsconfig Signed-off-by: GermaVinsmoke <vaibhav1180@gmail.com> * chore: updated react imports Signed-off-by: GermaVinsmoke <vaibhav1180@gmail.com> * chore: renamed redux dispatch Signed-off-by: GermaVinsmoke <vaibhav1180@gmail.com> * fix: build is fixed --------- Signed-off-by: GermaVinsmoke <vaibhav1180@gmail.com> Co-authored-by: Palash Gupta <palashgdev@gmail.com>
18 lines
597 B
TypeScript
18 lines
597 B
TypeScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
/* eslint-disable global-require */
|
|
/// <reference types="@welldone-software/why-did-you-render" />
|
|
// ^ https://github.com/welldone-software/why-did-you-render/issues/161
|
|
import * as React from 'react';
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
const whyDidYouRender = require('@welldone-software/why-did-you-render');
|
|
whyDidYouRender(React, {
|
|
trackAllPureComponents: false,
|
|
trackExtraHooks: [[require('react-redux/lib'), 'useSelector']],
|
|
include: [/^ConnectFunction/],
|
|
logOnDifferentValues: true,
|
|
});
|
|
}
|
|
|
|
export default '';
|