From bc94cf4902bed0dc35b2f709b4865bf07c111c9f Mon Sep 17 00:00:00 2001 From: NeOMakinG <14963751+NeOMakinG@users.noreply.github.com> Date: Fri, 28 Feb 2025 15:12:46 +0100 Subject: [PATCH] fix: bring back wdyr --- src/wdyr.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/wdyr.ts b/src/wdyr.ts index 7ca95cc37b0..c04bc61cc1f 100644 --- a/src/wdyr.ts +++ b/src/wdyr.ts @@ -1,10 +1,9 @@ -// import React from 'react' +import React from 'react' -// @TODO: fix this -// if (import.meta.env.NODE_ENV === 'development') { -// const whyDidYouRender = require('@welldone-software/why-did-you-render') -// whyDidYouRender(React, { -// trackAllPureComponents: true, -// exclude: [/withBoundingRects\(\)/, /Portal/], -// }) -// } +if (import.meta.env.NODE_ENV === 'development') { + const whyDidYouRender = require('@welldone-software/why-did-you-render') + whyDidYouRender(React, { + trackAllPureComponents: true, + exclude: [/withBoundingRects\(\)/, /Portal/], + }) +}