You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm not using TypeScript here, but in my Next.js project, I'm constantly getting an empty array when I Array.from(client.remoteUsers).
Basically, I wanted to filter out some users by username, but I can't even access the array as I am getting client.remoteUsers as a typeof object.
I am stuck here from nearly 2 days. I don't understand what i'm doing wrong here. Console logging client.remoteUsers actually returns me an array. I cannot map / filter / Array.from() or any other operation. It's returning me an empty array.
constnewA=client.remoteUsers.map((user)=>{return{videoTrack: user.videoTrack,audioTrack: user.audioTrack}});console.log(newA)//empty even though it;s not.setStudents(remoteUsers=>Array.from(client.remoteUsers));console.log(students);//empty array even though it;s not.
The text was updated successfully, but these errors were encountered:
Hey, I'm not using TypeScript here, but in my Next.js project, I'm constantly getting an empty array when I
Array.from(client.remoteUsers)
.Basically, I wanted to filter out some users by username, but I can't even access the array as I am getting
client.remoteUsers
as a typeofobject
.I am stuck here from nearly 2 days. I don't understand what i'm doing wrong here. Console logging
client.remoteUsers
actually returns me an array. I cannot map / filter / Array.from() or any other operation. It's returning me an empty array.The text was updated successfully, but these errors were encountered: