nhandled Runtime Error
TypeError: Cannot read properties of undefined (reading 'playing')
Source
hooks\usePlayer.js (38:45) @ playing
36 | setPlayers((prev) => {
37 | const copy = cloneDeep(prev)
38 | copy[myId].playing = !copy[myId].playing
| ^
39 | return {...copy}
40 | })
41 | socket.emit('user-toggle-video', myId, roomId)
Call Stack
usePlayer
hooks\usePlayer.js (8:43)
myId
pages[roomId].js (29:16)
Show collapsed frames
nhandled Runtime Error
TypeError: Cannot read properties of undefined (reading 'playing')
Source
hooks\usePlayer.js (38:45) @ playing
36 | setPlayers((prev) => {
37 | const copy = cloneDeep(prev)