refactor(core): adjust effect api (#11935)

This commit is contained in:
EYHN
2025-04-24 10:06:11 +00:00
parent 1d38e5787b
commit eaa1bc6bf1
41 changed files with 79 additions and 146 deletions

View File

@@ -5,13 +5,7 @@ import {
fromPromise,
Service,
} from '@toeverything/infra';
import {
catchError,
distinctUntilChanged,
EMPTY,
mergeMap,
throttleTime,
} from 'rxjs';
import { catchError, distinctUntilChanged, EMPTY, throttleTime } from 'rxjs';
import type { AIButtonProvider } from '../provider/ai-button';
@@ -37,7 +31,6 @@ export class AIButtonService extends Service {
}
return;
}).pipe(
mergeMap(() => EMPTY),
catchError(err => {
logger.error('presentAIButton error', err);
return EMPTY;