Await
Deprecated
This implementation is deprecated. Please use the new implementation from soil-reacty module instead.
Replace with
import soil.plant.compose.reacty.Await
Await(state, key, host, errorPredicate, errorFallback, content)
Await for a DataModel to be fulfilled.
The content will be displayed when the query is fulfilled. The await will be managed by the AwaitHost.
Parameters
Type of data to retrieve.
The DataModel to await.
The key to identify the await.
The AwaitHost to manage the await. By default, it uses the LocalAwaitHost.
A function to filter the error. By default, it filters the error when the query is rejected.
The content to display when the query is rejected. By default, it throws the error.
The content to display when the query is fulfilled.
Deprecated
This implementation is deprecated. Please use the new implementation from soil-reacty module instead.
Replace with
import soil.plant.compose.reacty.Await
Await(state1, state2, key, host, errorPredicate, errorFallback, content)
Await for two DataModel to be fulfilled.
The content will be displayed when the queries are fulfilled. The await will be managed by the AwaitHost.
Parameters
Type of data to retrieve.
Type of data to retrieve.
The first DataModel to await.
The second DataModel to await.
The key to identify the await.
The AwaitHost to manage the await. By default, it uses the LocalAwaitHost.
A function to filter the error. By default, it filters the error when the query is rejected.
The content to display when the query is rejected. By default, it throws the error.
The content to display when the queries are fulfilled.
Deprecated
This implementation is deprecated. Please use the new implementation from soil-reacty module instead.
Replace with
import soil.plant.compose.reacty.Await
Await(state1, state2, state3, key, host, errorPredicate, errorFallback, content)
Await for three DataModel to be fulfilled.
The content will be displayed when the queries are fulfilled. The await will be managed by the AwaitHost.
Parameters
Type of data to retrieve.
Type of data to retrieve.
Type of data to retrieve.
The first DataModel to await.
The second DataModel to await.
The third DataModel to await.
The key to identify the await.
The AwaitHost to manage the await. By default, it uses the LocalAwaitHost.
A function to filter the error. By default, it filters the error when the query is rejected.
The content to display when the query is rejected. By default, it throws the error.
The content to display when the queries are fulfilled.