Closed oponder closed 9 months ago
Hey @oponder,
this sounds like an unintended side-effect of a subtle bug that was introduced with 0.17.0 and the new external (custom call object) vs. internal (useCallObject) handling. There's already a fix in flight for 0.17.1, which we're working on to release asap.
Keep an eye on our releases and once 0.17.1 is available I'd ask you to try and confirm whether your specific issue is fixed.
Best, Christian
It's working well for us at 0.17.1 :) Thanks @Regaddi for the speedy release.
In my custom react app we use
createCallObject
and manually manage the callObject lifecycle instead of the newly introduceduseCallObject
hook.I can confirm that at
0.16.0
our app works, but at0.17.0
the callObject gets destroyed at some point afterstartCamera
.I'd be happy to try and isolate some code and create a repeatable example if this is not enough info.
Our code that sets up the callObject looks like this:
Another part of our app then calls
callObject.join
triggered by the button in our prejoin/haircheck component.We render the app with the DailyProvider, and initially callObject can be undefined. I thought maybe there is something going on where DailyProvider is doing the destroying, so I also tried not having DailyProvider in the component tree until the callObject is ready to be used, but that didn't seem to do anything.