Catch

inline fun Catch(vararg states: DataModel<*>, filter: (DataModel<*>) -> Boolean = { true }, content: @Composable CatchScope.(err: Throwable) -> Unit = { Throw(error = it) })

Deprecated

This implementation is deprecated. Please use the new implementation from soil-reacty module instead.

Replace with

import soil.plant.compose.reacty.Catch
Catch(states, filter, content)

Catch for any DataModels to be rejected.

Parameters

states

The DataModels to catch.

filter

A function to filter the error.

content

The content to display when the query is rejected. By default, it throws the error.