Add ability to hook into composite state #1958
Replies: 5 comments
-
Thanks for starting this discussion @levimiller-qhrtech From your screenshot, it looks like you're trying to add an overlay to select devices. For this you'd need access to the We support such scenarios via dependency injection. You can create the lower-layer call client via This way, you can retain a reference to the But you do not have to use the lower-level components from @azure/communication-react. You can use the Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
As an aside, if you're building a device selection experience, you might find this discussion relevant: #1840 |
Beta Was this translation helpful? Give feedback.
-
Thank you, I missed that I could just create the adaptor from a CallClient and Agent 😅 That should completely solve my issues 🙂 Also thank you for the link to the issue of saving the device selection because that's the next thing I'll be working on 🙂 |
Beta Was this translation helpful? Give feedback.
-
I think this was a great question. Moving to discussions for greater visibility. |
Beta Was this translation helpful? Give feedback.
-
Closing this discussion due to inactivity. Feel free to re-open if this is still an issue. |
Beta Was this translation helpful? Give feedback.
-
What feature are you requesting?
I'm currently trying to customize the CallComposite, but I'm having a really hard time hooking into the state without accessing private code.
The issue is that the composite hooks require everything to be wrapped in CallAdapterProvider, but the public hooks require everything to be wrapped in CallClientProvider, CallAgentProvider, and CallProvider. This wouldn't be an issue, but the Call adapter has the callClient, callAgent, and call as private properties.
What would be the benefit of adding this feature?
I'd be able to customize the call composite to meet our business requirements.
What solution would be ideal for you?
Can you either export the composite hooks publicly, or make it possible to use the created adapter to use the currently exported hooks.
What alternatives have you considered?
The only alternative I see are to import private code:
or access the private variables of the CallAdapter:
...
Is there any additional information for your request?
Attach screenshots or images add detail to your request:
Here's what I'm trying to do for context:
This dialog pops up when the settings button is pressed.
Beta Was this translation helpful? Give feedback.
All reactions