refactor(ivy): Update query-related comments (#29342)

Just updating comments in query-related things to make it easier for the next person that has to grok this for the first time.

Also adds a demo from @mhevery to one of the query specs

Related #29031

PR Close #29342
This commit is contained in:
Ben Lesh
2019-03-15 13:18:34 -07:00
committed by Matias Niemelä
parent b759d63389
commit d87b035ebb
4 changed files with 22 additions and 6 deletions

View File

@ -365,7 +365,9 @@ export function query<T>(
/**
* Refreshes a query by combining matches from all active views and removing matches from deleted
* views.
* Returns true if a query got dirty during change detection, false otherwise.
*
* @returns `true` if a query got dirty during change detection or if this is a static query
* resolving in creation mode, `false` otherwise.
*/
export function queryRefresh(queryList: QueryList<any>): boolean {
const queryListImpl = (queryList as any as QueryList_<any>);