The Lazy Component
is used when a BFF asynchronous request is made.
See how the structure is represented:
Attribute | Type | Required | Definition |
---|---|---|---|
path | String | ✓ | URL that makes the request. |
initialState | ServerDrivenComponent | ✓ | Server-driven component that is showed when there is an asynchronous request being done. |
LazyComponent(
path = "button.kt",
initialState = Text("Loading the screen, please wait", alignment = TextAlignment.CENTER)
)
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.