fix(infra): reduce workspace avatar request (#6713)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { DebugLogger } from '@affine/debug';
|
import { DebugLogger } from '@affine/debug';
|
||||||
import { catchError, EMPTY, mergeMap, switchMap } from 'rxjs';
|
import { catchError, EMPTY, exhaustMap, mergeMap } from 'rxjs';
|
||||||
|
|
||||||
import { Entity } from '../../../framework';
|
import { Entity } from '../../../framework';
|
||||||
import {
|
import {
|
||||||
@@ -59,7 +59,7 @@ export class WorkspaceProfile extends Entity<{ metadata: WorkspaceMetadata }> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
revalidate = effect(
|
revalidate = effect(
|
||||||
switchMap(() => {
|
exhaustMap(() => {
|
||||||
const provider = this.provider;
|
const provider = this.provider;
|
||||||
if (!provider) {
|
if (!provider) {
|
||||||
return EMPTY;
|
return EMPTY;
|
||||||
|
|||||||
Reference in New Issue
Block a user