Closed lukasIO closed 3 months ago
Latest commit: b311b4424eb8441843eebdcb765dbd6d035b7d80
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Path | Size |
---|---|
LiveKitRoom only | 1.87 KB (0%) |
LiveKitRoom with VideoConference | 28.24 KB (0%) |
All exports | 33.71 KB (+0.21% 🔺) |
Thinking out loud, should we instead do this?
useParticipant(kind: ParticipantKind.Agent, name: "myagent", identity: "blah")
that way, we could provide a general framework of returning the first participant matching these key filters
Today there's useRemoteParticipant(identity)
already.
I could imagine an overload for that hook with something like
useRemoteParticipant( { identity?: string; kind?: ParticipantKind })
What usecase do you imagine with name
additionally being part of the selector/filter?
Today there's
useRemoteParticipant(identity)
already.I could imagine an overload for that hook with something like
useRemoteParticipant( { identity?: string; kind?: ParticipantKind })
What usecase do you imagine with
name
additionally being part of the selector/filter?
great. I like that.. just thinking we could let user specify additional filters. Agreed name shouldn't be one today, I'm not quite sure why I put that in.
Makes sense, updated the PR to add an overload for useRemoteParticipant
instead
Simplifies agent usecases