mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 20:23:29 +08:00
Fix concurrent rendering error + make logs debug level
This commit is contained in:
@ -279,6 +279,7 @@ export function ClientConfigStore() {
|
||||
startChat();
|
||||
}, [accessToken]);
|
||||
|
||||
useEffect(() => {
|
||||
appStateService.onTransition(state => {
|
||||
if (!state.changed) {
|
||||
return;
|
||||
@ -286,11 +287,12 @@ export function ClientConfigStore() {
|
||||
|
||||
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);
|
||||
});
|
||||
});
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user