-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Code example mistake in useMemo page #7319
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size changes📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
@@ -1105,7 +1105,7 @@ function ChatRoom({ roomId }) { | |||
const connection = createConnection(options); | |||
connection.connect(); | |||
return () => connection.disconnect(); | |||
}, [options]); // ✅ Only changes when createOptions changes | |||
}, [options]); // ✅ Only changes when create options changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it should be "Only changes when options changes"? What is create options?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally, line 1104 const options = createOptions();
should be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok,thankyou
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check #7335
@ZhenyaGoroh @lukahartwig
Thank you all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check #7335 @ZhenyaGoroh @lukahartwig Thank you all
I left the comment. Also I'd suggest to commit changed to this pr instead of creating a new one.
No description provided.