-
Notifications
You must be signed in to change notification settings - Fork 389
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
[Bug?]: hydration fails silently without an error #1807
Comments
I am facing the same problem. for some reason the click event is not working. |
so I had imported a server function into my component and when I removed it then click event started working. but i need to use getUser in my component. there is no problem with the server function itself. I can get User info perfectly. |
make sure |
@huseeiin is this still an issue? Im not sure you have access to global in that context |
i know, the point is i expect an error like "global is not defined" in the browser for better dx and debugging |
when i put it in the component, it throws an error as expected: export default function Home() {
console.log(global);
return <button onClick={() => console.log("not interactive")}>Click</button>;
} |
Okay to answer this, |
interesting |
Duplicates
Latest version
Current behavior 😯
no error in console, but hydration fails expectedly
Expected behavior 🤔
TypeError: global is not defined
Steps to reproduce 🕹
Context 🔦
No response
Your environment 🌎
The text was updated successfully, but these errors were encountered: