We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've been trying to get it to work with Next.js v11 and now v12 but have never had any success. Would you mind providing an example?
Thanks
The text was updated successfully, but these errors were encountered:
@dungle-scrubs Hello, i use next v12.
You need the steps as follows :
import React from 'react'; if (process.env.NODE_ENV === 'development') { const whyDidYouRender = require('@welldone-software/why-did-you-render'); whyDidYouRender(React, { trackAllPureComponents: true, onlyLogs: true, titleColor: "green", }); }
import '../hooks/wdyr';
const XXX=()=>{ return <h1>xxx</h1> } XXX.whyDidYouRender = true; export default XXX;
Sorry, something went wrong.
@qfdk Thank you, that helped.
For me it didn't worked untlll I added
"jsxImportSource": "@welldone-software/why-did-you-render"
to tsconfig.ts
tsconfig.ts
@apperside Thanks. Can confirm this was also the solution to allow wdyr logging for Next 13.
wdyr
No branches or pull requests
I've been trying to get it to work with Next.js v11 and now v12 but have never had any success. Would you mind providing an example?
Thanks
The text was updated successfully, but these errors were encountered: