File tree Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @humeai/voice-embed-react" ,
3
- "version" : " 0.2.0-beta.17 " ,
3
+ "version" : " 0.2.0-beta.18 " ,
4
4
"description" : " " ,
5
5
"main" : " ./dist/index.js" ,
6
6
"module" : " ./dist/index.mjs" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @humeai/voice-embed" ,
3
- "version" : " 0.2.0-beta.17 " ,
3
+ "version" : " 0.2.0-beta.18 " ,
4
4
"description" : " " ,
5
5
"main" : " ./dist/index.js" ,
6
6
"module" : " ./dist/index.mjs" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @humeai/voice-react" ,
3
- "version" : " 0.2.0-beta.17 " ,
3
+ "version" : " 0.2.0-beta.18 " ,
4
4
"description" : " " ,
5
5
"main" : " ./dist/index.js" ,
6
6
"module" : " ./dist/index.mjs" ,
Original file line number Diff line number Diff line change @@ -710,14 +710,15 @@ export const VoiceProvider: FC<VoiceProviderProps> = ({
710
710
useEffect ( ( ) => {
711
711
// disconnect from socket when the voice provider component unmounts
712
712
return ( ) => {
713
- void disconnectAndCleanUpResources ( ) ;
714
- setStatus ( { value : 'disconnected' } ) ;
715
- isConnectingRef . current = false ;
716
- resourceStatusRef . current = {
717
- mic : 'disconnected' ,
718
- audioPlayer : 'disconnected' ,
719
- socket : 'disconnected' ,
720
- } ;
713
+ void disconnectAndCleanUpResources ( ) . then ( ( ) => {
714
+ setStatus ( { value : 'disconnected' } ) ;
715
+ isConnectingRef . current = false ;
716
+ resourceStatusRef . current = {
717
+ mic : 'disconnected' ,
718
+ audioPlayer : 'disconnected' ,
719
+ socket : 'disconnected' ,
720
+ } ;
721
+ } ) ;
721
722
} ;
722
723
// eslint-disable-next-line react-hooks/exhaustive-deps
723
724
} , [ ] ) ;
You can’t perform that action at this time.
0 commit comments