Skip to content

Commit d596ce2

Browse files
committed
Code example mistake in useMemo page
1 parent 2bd6189 commit d596ce2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/react/useMemo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ function ChatRoom({ roomId }) {
11051105
const connection = createConnection(options);
11061106
connection.connect();
11071107
return () => connection.disconnect();
1108-
}, [options]); // ✅ Only changes when createOptions changes
1108+
}, [options]); // ✅ Only changes when create option changes
11091109
// ...
11101110
```
11111111

0 commit comments

Comments
 (0)