KeyEquals

abstract class KeyEquals

An optional base class for determining key equivalence.

Usage:

private class TestQueryKey : KeyEquals(), QueryKey<String> by buildQueryKey(
id = ..
)

Note: When using this on Compose with StrongSkippingMode enabled, you can generate the key without wrapping it in the remember function if the key can be marked as stable. For details on marking objects as stable, refer to the official documentation: https://developer.android.com/develop/ui/compose/performance/stability

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val id: UniqueId

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int