Skip to content

Commit b329ad8

Browse files
teepobharuTeepob Harutaipreegaearon
authored
docs: Disable lint in Code Example Preview unblock user from seeing initial UI (#5762)
* add eslint to disable lint error * Update removing-effect-dependencies.md --------- Co-authored-by: Teepob Harutaipree <[email protected]> Co-authored-by: dan <[email protected]>
1 parent b40432a commit b329ad8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/learn/removing-effect-dependencies.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,8 @@ const serverUrl = 'https://localhost:1234';
803803
function ChatRoom({ roomId }) {
804804
const [message, setMessage] = useState('');
805805

806+
// Temporarily disable the linter to demonstrate the problem
807+
// eslint-disable-next-line react-hooks/exhaustive-deps
806808
const options = {
807809
serverUrl: serverUrl,
808810
roomId: roomId

0 commit comments

Comments
 (0)