Single-use configurations
Single-use configurations are settings that can only be applied once per element. These configurations directly control an element’s content, structure, or visibility, making them essential for managing core interactions and display logic.
Why are these configurations single use?
- Element-Specific control: Some settings directly modify an element’s primary function (e.g., text content, visibility).
- Avoiding conflicts: Allowing multiple instances of these settings on the same element could create inconsistencies or unpredictable behavior.
- Performance optimization: Restricting these configurations ensures optimal rendering and updates.
How do single use configurations work?
Each element can have only one instance of a single-use configuration. For example, an element can have only one text setting, since defining multiple text sources would create conflicts.
Common use cases
- Setting dynamic text content based on request responses.
- Controlling visibility based on conditions.
- Rendering lists dynamically using render list.
- Pre-filling input fields using form value or input value.