Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit fbf4abb

Browse files
TedSandernshahan
authored andcommitted
Add warning to the FactoryRenderer also.
PiperOrigin-RevId: 260233135
1 parent c6bca1f commit fbf4abb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

angular_components/lib/material_select/material_select_item.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class MaterialSelectItemComponent<T> extends ButtonDirective
108108

109109
/// A function to render an item as a String.
110110
///
111-
/// It is required that this function be pure, or change it's identity when
111+
/// It is required that this function be pure, or change its identity when
112112
/// internal state has changed. Otherwise the item will not know it needs to
113113
/// update the label. If none is provided, no label is generated (labels can
114114
/// still be passed as content).
@@ -123,7 +123,11 @@ class MaterialSelectItemComponent<T> extends ButtonDirective
123123
ComponentRenderer componentRenderer;
124124

125125
/// Returns a [ComponentFactory] for dynamic component loader to use to render
126-
/// an item.
126+
/// an item.
127+
///
128+
/// It is required that this function be pure, or change its identity when
129+
/// internal state has changed. Otherwise the item will not know it needs to
130+
/// update the component.
127131
@Input()
128132
@override
129133
FactoryRenderer<RendersValue, T> factoryRenderer;

0 commit comments

Comments
 (0)