perf(ivy): chain host binding instructions (#31296)
Adds chaining to the `property`, `attribute` and `updateSyntheticHostBinding` instructions when they're used in a host binding. This PR resolves FW-1404. PR Close #31296
This commit is contained in:

committed by
Alex Rickabaugh

parent
c6b29f4c6d
commit
81332150aa
@ -84,7 +84,8 @@ export function bind<T>(lView: LView, value: T): T|NO_CHANGE {
|
||||
* @codeGenApi
|
||||
*/
|
||||
export function ɵɵupdateSyntheticHostBinding<T>(
|
||||
propName: string, value: T | NO_CHANGE, sanitizer?: SanitizerFn | null, nativeOnly?: boolean) {
|
||||
propName: string, value: T | NO_CHANGE, sanitizer?: SanitizerFn | null,
|
||||
nativeOnly?: boolean): TsickleIssue1009 {
|
||||
const index = getSelectedIndex();
|
||||
const lView = getLView();
|
||||
// TODO(benlesh): remove bind call here.
|
||||
@ -92,4 +93,5 @@ export function ɵɵupdateSyntheticHostBinding<T>(
|
||||
if (bound !== NO_CHANGE) {
|
||||
elementPropertyInternal(index, propName, bound, sanitizer, nativeOnly, loadComponentRenderer);
|
||||
}
|
||||
return ɵɵupdateSyntheticHostBinding;
|
||||
}
|
||||
|
Reference in New Issue
Block a user