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

Partially Working with React 18 + NextJS 13 #285

Open
aktasmehmet opened this issue Jan 5, 2024 · 0 comments
Open

Partially Working with React 18 + NextJS 13 #285

aktasmehmet opened this issue Jan 5, 2024 · 0 comments

Comments

@aktasmehmet
Copy link

Hi,

I've been stuggling to make WDYR work with the stack of React 18.2.0 and NextJS 13.5.6 using App Router.

What I did so far is to inject the wdyr script in next.config.ts and somehow made it work.

But the problem is that, I couldn't get any logs besides the useState hook changes. I created similar components and scenarios as in the documents provided but couldn't trigger WDYR for the prop changes. What am I missing here?

next.config.js
Screenshot 2024-01-05 at 12 06 08

wdyr.ts
Screenshot 2024-01-05 at 12 06 59

Parent Component
Screenshot 2024-01-05 at 12 07 44

ChildComponent
Screenshot 2024-01-05 at 12 09 28

Each time I click the button, I get the logs below (only the useState logs of the parent component). Shouldn't I get the log for the Button component here since style prop changes? Besides, I've tried this with a lot of different prop types but the result is the same :(

Screenshot 2024-01-05 at 12 10 53

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