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 · 0 comments
Open

trackAllPureComponents: true is not working #294

Sheikh45 opened this issue Mar 19, 2024 · 0 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

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

1 participant