u
This commit is contained in:
@@ -128,17 +128,9 @@ function buildAuthState(user, status, extra = {}) {
|
||||
}
|
||||
|
||||
function syncSse(state) {
|
||||
if (state.hasAuth) {
|
||||
void import('./sseAutomat')
|
||||
.then(({ default: sseAutomat }) => {
|
||||
sseAutomat.actions.syncWithAuth?.(state);
|
||||
})
|
||||
.catch(() => { });
|
||||
} else {
|
||||
const sseAutomat = Automat.get('sse');
|
||||
if (sseAutomat?.actions?.syncWithAuth) {
|
||||
sseAutomat.actions.syncWithAuth(state);
|
||||
}
|
||||
const sseAutomat = Automat.get('sse');
|
||||
if (sseAutomat?.actions?.syncWithAuth) {
|
||||
sseAutomat.actions.syncWithAuth(state);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user