rememberMutationIf

fun <T, S, V> rememberMutationIf(value: V, keyFactory: (value: V) -> MutationKey<T, S>?, config: MutationConfig = MutationConfig.Default, client: MutationClient = LocalMutationClient.current): MutationObject<T, S>?

Provides a conditional rememberMutation.

Calls rememberMutation only if keyFactory returns a MutationKey from value.

See also