-
Notifications
You must be signed in to change notification settings - Fork 199
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
No logs or anything about WDYR #280
Comments
the same issue |
for what that's worth, I have the same setup as you and getting logs. The only difference is that I migrated to : import React from 'react';
if (___DEV___) {
const whyDidYouRender = require('@welldone-software/why-did-you-render')
whyDidYouRender(React, {
trackAllPureComponents: true,
})
}` Before that, I had it deactivated for a while and refactored quite a lot of components and screens. When reactivated, I was having no logs, then tried that. I'm now getting a log once in a while, not sure if my code improved THAT much everything or if something changed in React/RN that makes WDYR triggers less. |
I’ve described the solution for react-native projects in this pull request #288 |
Hi @sergeylaptev I've followed the steps but still getting no logs . babel.config.js
wdyr.ts
App.tsx
index.js
|
try |
@SudoPlz I have tried this also but not working . |
@avisek123 I'm not sure why it's not working, I'm also just experimenting myself. I had luck with both that flag, and |
I'm using react native 0.73.4 and my babel.config.js is is using And I don't have logs. |
I set up WDYR today in our NX monorepo with a React/Vite project. The React / Typescript configuration of my project is simple. I faced the "no logs" issue, and landed on this configuration and it is printing. The
Good luck - hope this works for y'all. |
I follewed the setup instructions but I see no logs or anything. I am using CRA v5.0.1 and the react version is 18.2. WDYR is v7.0.1. Is this a compatibility issues? thanks
index.js:
whyDidYouRender.js:
The text was updated successfully, but these errors were encountered: