auto

fun <T, S> auto(namespace: String = "auto/", vararg tags: SurrogateKey): MutationId<T, S>

Deprecated

This function is deprecated because it does not retain automatically generated values when used within Compose. As a result, values are regenerated after configuration changes, leading to different values. Consider using an alternative approach that preserves state across recompositions.

Replace with

import soil.query.MutationId
MutationId(namespace, *tags)

Automatically generates a MutationId.

Generates an ID for one-time use, so it cannot be shared among multiple places of use.

FIXME: Since this function is for automatic ID assignment, it might be better not to have arguments.