X Tutup
Skip to content

feat(query): make QueryList notify on changes via an observable#4395

Closed
vsavkin wants to merge 1 commit intoangular:masterfrom
vsavkin:make_query_observable
Closed

feat(query): make QueryList notify on changes via an observable#4395
vsavkin wants to merge 1 commit intoangular:masterfrom
vsavkin:make_query_observable

Conversation

@vsavkin
Copy link
Copy Markdown
Contributor

@vsavkin vsavkin commented Sep 28, 2015

BREAKING CHANGE:

Before: query.onChange(() => ...);
After: query.changes.subscribe((iterable) => {});

@vsavkin vsavkin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 28, 2015
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You could probably omit the parenthesis around _.

@rkirov
Copy link
Copy Markdown
Contributor

rkirov commented Sep 29, 2015

Update QueryList documentation. I think it used to say 'this will be Observable'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why are you recreating the list on every reset? I think this can cause problems because some users will store the QueryList in the component.

@rkirov
Copy link
Copy Markdown
Contributor

rkirov commented Sep 29, 2015

Mostly good, just a few conceptual questions before I can LGTM it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lets rename this to dehydrate, hydrate and match injector cleanup.

@rkirov rkirov added pr_state: LGTM and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 29, 2015
BREAKING CHANGE:

Before: query.onChange(() => ...);
After: query.changes.subscribe((iterable) => {});
@vsavkin vsavkin force-pushed the make_query_observable branch from 4405bcc to 3ff3fd3 Compare September 30, 2015 15:41
@vsavkin vsavkin added the action: merge The PR is ready for merge by the caretaker label Sep 30, 2015
@mary-poppins
Copy link
Copy Markdown

Merging PR #4395 on behalf of @vsavkin to branch presubmit-vsavkin-pr-4395.

@mary-poppins mary-poppins removed the action: merge The PR is ready for merge by the caretaker label Sep 30, 2015
@vsavkin vsavkin closed this in 3aa2047 Sep 30, 2015
@todoubaba
Copy link
Copy Markdown
Contributor

With alpha.38, angular2.d.ts does not define subscribe method in Observable.

 error TS2339: Property 'subscribe' does not exist on type 'Observable'.

@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

X Tutup