mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2024-10-07 03:23:37 +00:00
fix: use pre watchers with vueuse until
By default, Vue watchers use pre flush timing. However, by default, VueUse uses sync for it's until composable Signed-off-by: Fernando Fernández <ferferga@hotmail.com>
This commit is contained in:
parent
f7f93ec581
commit
e5e988e01b
@ -267,7 +267,7 @@ function _sharedInternalLogic<T extends Record<K, (...args: any[]) => any>, K ex
|
||||
};
|
||||
const returnablePromise = async (): Promise<ReturnPayload<T, K, typeof ofBaseItem>> => {
|
||||
await runNormally();
|
||||
await until(data).toMatch(d => !isNil(d));
|
||||
await until(() => isCached.value && !ops.skipCache.request).toBeTruthy({ flush: 'pre' });
|
||||
|
||||
return { loading, data };
|
||||
};
|
||||
|
@ -33,7 +33,7 @@ export async function loginGuard(
|
||||
if (jsonConfig.allowServerSelection) {
|
||||
destinationRoute = { path: serverSelectUrl, replace: true };
|
||||
} else {
|
||||
await until(() => remote.auth.currentServer).toBeTruthy();
|
||||
await until(() => remote.auth.currentServer).toBeTruthy({ flush: 'pre' });
|
||||
|
||||
return loginGuard(to);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user