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
Activity
qfdk commentedon Jun 30, 2022
@dungle-scrubs Hello, i use next v12.
You need the steps as follows :
1. Create a wdyr.js
2. Import the wdyr.js in _app.js
3. Add props in the compostant
dungle-scrubs commentedon Jul 5, 2022
@qfdk Thank you, that helped.
apperside commentedon Dec 12, 2022
For me it didn't worked untlll I added
"jsxImportSource": "@welldone-software/why-did-you-render"to
tsconfig.tsmikechabot commentedon Jan 9, 2023
@apperside Thanks. Can confirm this was also the solution to allow
wdyrlogging for Next 13.