mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 03:54:54 +08:00
Fix concurrent rendering error + make logs debug level
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user