Skip to content

Commit

Permalink
refactor(store-devtools): replace deprecated empty() function (#2895)
Browse files Browse the repository at this point in the history
The deprecated function 'empty()' is replaced with 'EMPTY' object.

Closes #2891
  • Loading branch information
krishnaanaril authored Jan 30, 2021
1 parent d489484 commit 251b83a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/store-devtools/src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Inject, Injectable, InjectionToken } from '@angular/core';
import { Action, UPDATE } from '@ngrx/store';
import { empty, Observable, of } from 'rxjs';
import { EMPTY, Observable, of } from 'rxjs';
import {
catchError,
concatMap,
Expand Down Expand Up @@ -39,9 +39,9 @@ export const ExtensionActionTypes = {
ACTION: 'ACTION',
};

export const REDUX_DEVTOOLS_EXTENSION = new InjectionToken<
ReduxDevtoolsExtension
>('@ngrx/store-devtools Redux Devtools Extension');
export const REDUX_DEVTOOLS_EXTENSION = new InjectionToken<ReduxDevtoolsExtension>(
'@ngrx/store-devtools Redux Devtools Extension'
);

export interface ReduxDevtoolsExtensionConnection {
subscribe(listener: (change: any) => void): void;
Expand Down Expand Up @@ -160,7 +160,7 @@ export class DevtoolsExtension {

private createChangesObservable(): Observable<any> {
if (!this.devtoolsExtension) {
return empty();
return EMPTY;
}

return new Observable((subscriber) => {
Expand Down

0 comments on commit 251b83a

Please sign in to comment.