Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

wdyr is updated (#981)

palash-signozd454482f4333
diff --git a/frontend/src/wdyr.ts b/frontend/src/wdyr.ts
index a69c889035..e64dcca566 100644
--- a/frontend/src/wdyr.ts
+++ b/frontend/src/wdyr.ts
@@ -1,17 +1,17 @@
+/* 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 React from 'react';
if (process.env.NODE_ENV === 'development') {
- import('@welldone-software/why-did-you-render').then((whyDidYouRender) => {
- whyDidYouRender.default(React, {
- trackAllPureComponents: true,
- trackHooks: true,
- // https://github.com/welldone-software/why-did-you-render/issues/85#issuecomment-596682587
- trackExtraHooks: [require('react-redux/lib'), 'useSelector'],
- include: [/^ConnectFunction/],
- logOnDifferentValues: true,
- });
+ 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 '';