Skip to content

Commit 62a16b2

Browse files
committed
reset meeting state when call instance is destroyed
1 parent f30f3b8 commit 62a16b2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/DailyMeeting.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,14 @@ export const DailyMeeting: React.FC<React.PropsWithChildren<{}>> = ({
131131
useDailyEvent(
132132
'call-instance-destroyed',
133133
useRecoilCallback(
134-
({ reset }) =>
134+
({ transact_UNSTABLE }) =>
135135
() => {
136-
reset(meetingStateState);
136+
transact_UNSTABLE(({ reset }) => {
137+
reset(meetingStateState);
138+
reset(meetingErrorState);
139+
reset(nonFatalErrorState);
140+
reset(meetingSessionDataState);
141+
});
137142
},
138143
[]
139144
)

0 commit comments

Comments
 (0)