NTP-26125 | reinit adapter when adapter option changes
This commit is contained in:
@@ -91,7 +91,7 @@ function UseCallSdk({AdapterClass, adapterOptions, metricsConfig, clickStreamCon
|
||||
}) {
|
||||
useEffect(() => {
|
||||
adapter = new AdapterClass(adapterOptions);
|
||||
}, []);
|
||||
}, [adapterOptions]);
|
||||
// @ts-expect-error sdfsf
|
||||
const [callState] = useReducer<any>(reducer, initialState,()=> initialState);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user