Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trackAllPureComponents: true is not working #294

Open
Sheikh45 opened this issue Mar 19, 2024 · 2 comments
Open

trackAllPureComponents: true is not working #294

Sheikh45 opened this issue Mar 19, 2024 · 2 comments

Comments

@Sheikh45
Copy link

Functional Component in React.Memo(Component) is not working, no logs or anything shows.

import React from 'react';

if (process.env.NODE_ENV === 'development') {
  const whyDidYouRender = require('@welldone-software/why-did-you-render');
  whyDidYouRender(React, {
    trackAllPureComponents: true,
  });
}

and importing it as first line in index.js

import './wdyr';
import React from 'react';

I am using CRA v5.0.1 and react v18.2.0 while the WDYR is v8.0.1 as devDependency

@skanehira
Copy link

same as...

@alexandre-emmanuel
Copy link

Same here. I am developing React 18.2 web app (using Redux, Material UI, AgGrid) and I am creating functional components only and no any wdyr message in the console. I have also downloaded official code sanbox, put React 18 into it (and added sass module explicitly) and tried to run on the localhost - but no wdyr messages either. I wonder - anyone is using wdyr at all? They should, because there are no alternatives, React DevTools Profile is too un-informative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants