steep-balloon-41261
04/26/2023, 6:30 PMpolite-kilobyte-67570
04/27/2023, 8:42 AM<LiveKitRoom>
faint-refrigerator-4215
04/27/2023, 8:41 PMchildren
faint-refrigerator-4215
04/27/2023, 8:42 PMfaint-refrigerator-4215
04/27/2023, 8:43 PMfaint-refrigerator-4215
04/27/2023, 8:49 PMfaint-refrigerator-4215
04/27/2023, 8:50 PMtoken
is causing a rerender, but this code looks just like your examples and I'd expect your hook to only return oncebillions-summer-21168
04/27/2023, 11:17 PMuseToken
hook is running over and over again, and you can see the log.debug('fetching token');
show up multiple times in the logs Jamie included. Is there anything we should be looking out for that might cause useToken
to get called on a loop continuously?polite-kilobyte-67570
05/02/2023, 12:06 PMuseToken
implementation, can you try to replace the options
in the dependency array with [tokenEndpoint, roomName, JSON.stringify(options)]
.
this would prevent causing re-renders (and we’ll probably add this optimization to the components-js repo as well)