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

TypeError: Cannot read properties of undefined (reading 'hookIdx') #34

Closed
svagi opened this issue Jun 6, 2023 · 10 comments
Closed

TypeError: Cannot read properties of undefined (reading 'hookIdx') #34

svagi opened this issue Jun 6, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@svagi
Copy link

svagi commented Jun 6, 2023

Hi, I'm getting following error with the Rempl extension when using the latest version 0.7.1 of React Render Tracker. It works correctly when I use older version 0.7.0.

image

@Tsyklop
Copy link

Tsyklop commented Jun 6, 2023

Same issue

@lahmatiy lahmatiy added the bug Something isn't working label Jun 6, 2023
@lahmatiy
Copy link
Owner

lahmatiy commented Jun 6, 2023

I found that bug is related to using useSyncExternalStore(). Working on fix...

@lahmatiy
Copy link
Owner

lahmatiy commented Jun 7, 2023

Just released 0.7.2 to address the issue.

@svagi
Copy link
Author

svagi commented Jun 7, 2023

Hi @lahmatiy, thanks for the fix! The error from the console is gone now, however nothing is rendering in the extension. This was also happening in v0.7.1. It works correctly in 0.7.0.

image

@lahmatiy
Copy link
Owner

lahmatiy commented Jun 7, 2023

There is an error in UI. You don't see error messages since it embed into devtools. To see messages, use inpage sandbox for UI (see in readme), or open devtools as detached window and open a devtools for it using hot keys - you will see errors there.

@svagi
Copy link
Author

svagi commented Jun 7, 2023

@lahmatiy I tried both, unfortunately I can't see any error in the console...

@lahmatiy
Copy link
Owner

lahmatiy commented Jun 8, 2023

@svagi Looks like I found a root cause of the problem. There no errors in console, but a <StrictMode> fiber is missed in a log and components tree can be built. You can switch to parent-child hierarchy to see components (<> button). Working on a fix

@svagi
Copy link
Author

svagi commented Jun 8, 2023

@lahmatiy Great news! Switching works, thanks for the update! 👍

@lahmatiy
Copy link
Owner

lahmatiy commented Jun 9, 2023

Fixed in 0.7.3

@svagi
Copy link
Author

svagi commented Jun 9, 2023

Great, thanks @lahmatiy! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants