fix(ivy): Content Queries inheritance fix (#28324)
Prior to this change contentQueriesRefresh functions that represent refresh logic for @ContentQuery list were not composable, which caused problems in case one Directive inherits another one and both of them contain Content Queries. Due to the fact that we used indices to reference queries in refresh function, results were placed into wrong Queries. In order to avoid that we no longer use indices to reference queries and instead maintain current content query index while iterating through them. This allows us to compose contentQueriesRefresh functions and make inheritance feature work with Content Queries. PR Close #28324
This commit is contained in:

committed by
Jason Aden

parent
ebac5dba38
commit
bb94434d85
@ -40,7 +40,6 @@ export const angularCoreEnv: {[name: string]: Function} = {
|
||||
'ɵnextContext': r3.nextContext,
|
||||
'ɵcontainerRefreshStart': r3.containerRefreshStart,
|
||||
'ɵcontainerRefreshEnd': r3.containerRefreshEnd,
|
||||
'ɵloadQueryList': r3.loadQueryList,
|
||||
'ɵnamespaceHTML': r3.namespaceHTML,
|
||||
'ɵnamespaceMathML': r3.namespaceMathML,
|
||||
'ɵnamespaceSVG': r3.namespaceSVG,
|
||||
@ -87,11 +86,11 @@ export const angularCoreEnv: {[name: string]: Function} = {
|
||||
'ɵpipeBindV': r3.pipeBindV,
|
||||
'ɵprojectionDef': r3.projectionDef,
|
||||
'ɵpipe': r3.pipe,
|
||||
'ɵquery': r3.query,
|
||||
'ɵqueryRefresh': r3.queryRefresh,
|
||||
'ɵviewQuery': r3.viewQuery,
|
||||
'ɵloadViewQuery': r3.loadViewQuery,
|
||||
'ɵregisterContentQuery': r3.registerContentQuery,
|
||||
'ɵcontentQuery': r3.contentQuery,
|
||||
'ɵloadContentQuery': r3.loadContentQuery,
|
||||
'ɵreference': r3.reference,
|
||||
'ɵelementStyling': r3.elementStyling,
|
||||
'ɵelementHostAttrs': r3.elementHostAttrs,
|
||||
|
Reference in New Issue
Block a user