Skip to content

Conversation

@jymdman
Copy link
Contributor

@jymdman jymdman commented May 11, 2018

Checklist

  • Issue number for this PR: #nnn (required)
  • Docs included?: (yes/no; required for all API/functional changes)
  • Test units included?: (yes/no; required)
  • In a clean directory, yarn install, yarn test run successfully? (yes/no; required)

Description

Updates database to rxjs pipeable operators

.distinctUntilChanged();
return fromRef(ref, 'value', 'once').pipe(
switchMap(snapshotAction => {
const childEvent$ = [Observable.of(snapshotAction)];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import of and merge and use

import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/merge';
import 'rxjs/add/operator/scan';
import { Observable } from 'rxjs';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import and use merge rather than Observable.merge

@jamesdaniels jamesdaniels merged commit 5c3681d into angular:master May 11, 2018
@jymdman jymdman deleted the database-rxjs-pipeable branch May 11, 2018 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants