Fix concurrent rendering error + make logs debug level
This commit is contained in:
parent
aae63e4e2c
commit
1b26a44fb6
@ -279,17 +279,19 @@ export function ClientConfigStore() {
|
||||
startChat();
|
||||
}, [accessToken]);
|
||||
|
||||
appStateService.onTransition(state => {
|
||||
if (!state.changed) {
|
||||
return;
|
||||
}
|
||||
useEffect(() => {
|
||||
appStateService.onTransition(state => {
|
||||
if (!state.changed) {
|
||||
return;
|
||||
}
|
||||
|
||||
const metadata = mergeMeta(state.meta) as AppStateOptions;
|
||||
const metadata = mergeMeta(state.meta) as AppStateOptions;
|
||||
|
||||
console.log('--- APP STATE: ', state.value);
|
||||
console.log('--- APP META: ', metadata);
|
||||
console.debug('--- APP STATE: ', state.value);
|
||||
console.debug('--- APP META: ', metadata);
|
||||
|
||||
setAppState(metadata);
|
||||
setAppState(metadata);
|
||||
});
|
||||
});
|
||||
|
||||
return null;
|
||||
|
@ -40,7 +40,7 @@ export default class WebsocketService {
|
||||
const url = new URL('ws://localhost:8080/ws');
|
||||
url.searchParams.append('accessToken', this.accessToken);
|
||||
|
||||
console.log('connecting to ', url.toString());
|
||||
console.debug('connecting to ', url.toString());
|
||||
const ws = new WebSocket(url.toString());
|
||||
ws.onopen = this.onOpen.bind(this);
|
||||
// ws.onclose = this.onClose.bind(this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user