presenterOf

inline fun <UiState : CircuitUiState> presenterOf(crossinline body: @Composable () -> UiState): Presenter<UiState>(source)

Due to this bug in Studio, we can't write lambda impls of Presenter directly. This works around it by offering a shim function of the same name. Once it's fixed, we can remove this and make Presenter a fun interface instead.

Bug: https://issuetracker.google.com/issues/240292828

See also

for main docs.