Skip to content

Commit

Permalink
behaviorsubject
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Jun 11, 2024
1 parent 6929962 commit a6a4d65
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/app/Shared/Services/Api.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,18 @@
import { LayoutTemplate, SerialLayoutTemplate } from '@app/Dashboard/types';
import { createBlobURL } from '@app/utils/utils';
import { ValidatedOptions } from '@patternfly/react-core';
import { EMPTY, forkJoin, from, Observable, ObservableInput, of, ReplaySubject, shareReplay, throwError } from 'rxjs';
import {
BehaviorSubject,
EMPTY,
forkJoin,
from,
Observable,
ObservableInput,
of,
ReplaySubject,
shareReplay,
throwError,
} from 'rxjs';
import { fromFetch } from 'rxjs/fetch';
import { catchError, concatMap, filter, first, map, mergeMap, tap } from 'rxjs/operators';
import {
Expand Down Expand Up @@ -69,7 +80,7 @@ import { NotificationService } from './Notifications.service';
import { TargetService } from './Target.service';

export class ApiService {
private readonly archiveEnabled = new ReplaySubject<boolean>(true);
private readonly archiveEnabled = new BehaviorSubject<boolean>(true);
private readonly cryostatVersionSubject = new ReplaySubject<string>(1);
private readonly grafanaDatasourceUrlSubject = new ReplaySubject<string>(1);
private readonly grafanaDashboardUrlSubject = new ReplaySubject<string>(1);
Expand Down

0 comments on commit a6a4d65

Please sign in to comment.