@@ -281,7 +281,7 @@ Play with this example and see if you can spot the problem with this user experi
281281
282282` ` ` js
283283import { useState , useEffect } from ' react' ;
284- import { createConnection , sendMessage } from ' ./chat.js' ;
284+ import { createConnection } from ' ./chat.js' ;
285285import { showNotification } from ' ./notifications.js' ;
286286
287287const serverUrl = ' https://localhost:1234' ;
@@ -465,7 +465,7 @@ Verify that the new behavior works as you would expect:
465465` ` ` js
466466import { useState , useEffect } from ' react' ;
467467import { experimental_useEffectEvent as useEffectEvent } from ' react' ;
468- import { createConnection , sendMessage } from ' ./chat.js' ;
468+ import { createConnection } from ' ./chat.js' ;
469469import { showNotification } from ' ./notifications.js' ;
470470
471471const serverUrl = ' https://localhost:1234' ;
@@ -1442,7 +1442,7 @@ Your Effect knows which room it connected to. Is there any information that you
14421442` ` ` js
14431443import { useState , useEffect } from ' react' ;
14441444import { experimental_useEffectEvent as useEffectEvent } from ' react' ;
1445- import { createConnection , sendMessage } from ' ./chat.js' ;
1445+ import { createConnection } from ' ./chat.js' ;
14461446import { showNotification } from ' ./notifications.js' ;
14471447
14481448const serverUrl = ' https://localhost:1234' ;
@@ -1583,7 +1583,7 @@ To fix the issue, instead of reading the *latest* `roomId` inside the Effect Eve
15831583` ` ` js
15841584import { useState , useEffect } from ' react' ;
15851585import { experimental_useEffectEvent as useEffectEvent } from ' react' ;
1586- import { createConnection , sendMessage } from ' ./chat.js' ;
1586+ import { createConnection } from ' ./chat.js' ;
15871587import { showNotification } from ' ./notifications.js' ;
15881588
15891589const serverUrl = ' https://localhost:1234' ;
@@ -1720,7 +1720,7 @@ To solve the additional challenge, save the notification timeout ID and clear it
17201720` ` ` js
17211721import { useState , useEffect } from ' react' ;
17221722import { experimental_useEffectEvent as useEffectEvent } from ' react' ;
1723- import { createConnection , sendMessage } from ' ./chat.js' ;
1723+ import { createConnection } from ' ./chat.js' ;
17241724import { showNotification } from ' ./notifications.js' ;
17251725
17261726const serverUrl = ' https://localhost:1234' ;
0 commit comments