mirror of
https://github.com/owncast/owncast.git
synced 2025-11-03 21:08:36 +08:00
Fix concurrent rendering error + make logs debug level
This commit is contained in:
@ -279,6 +279,7 @@ export function ClientConfigStore() {
|
|||||||
startChat();
|
startChat();
|
||||||
}, [accessToken]);
|
}, [accessToken]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
appStateService.onTransition(state => {
|
appStateService.onTransition(state => {
|
||||||
if (!state.changed) {
|
if (!state.changed) {
|
||||||
return;
|
return;
|
||||||
@ -286,11 +287,12 @@ export function ClientConfigStore() {
|
|||||||
|
|
||||||
const metadata = mergeMeta(state.meta) as AppStateOptions;
|
const metadata = mergeMeta(state.meta) as AppStateOptions;
|
||||||
|
|
||||||
console.log('--- APP STATE: ', state.value);
|
console.debug('--- APP STATE: ', state.value);
|
||||||
console.log('--- APP META: ', metadata);
|
console.debug('--- APP META: ', metadata);
|
||||||
|
|
||||||
setAppState(metadata);
|
setAppState(metadata);
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,7 +40,7 @@ export default class WebsocketService {
|
|||||||
const url = new URL('ws://localhost:8080/ws');
|
const url = new URL('ws://localhost:8080/ws');
|
||||||
url.searchParams.append('accessToken', this.accessToken);
|
url.searchParams.append('accessToken', this.accessToken);
|
||||||
|
|
||||||
console.log('connecting to ', url.toString());
|
console.debug('connecting to ', url.toString());
|
||||||
const ws = new WebSocket(url.toString());
|
const ws = new WebSocket(url.toString());
|
||||||
ws.onopen = this.onOpen.bind(this);
|
ws.onopen = this.onOpen.bind(this);
|
||||||
// ws.onclose = this.onClose.bind(this);
|
// ws.onclose = this.onClose.bind(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user