Skip to content

//reactivestate-core/com.ensody.reactivestate/NamespacedStateFlowStore

NamespacedStateFlowStore

[common]\ class NamespacedStateFlowStore(store: StateFlowStore, namespace: String) : StateFlowStore

A wrapper StateFlowStore that prefixes every key with a namespace.

This is useful for preventing name clashes when passing StateFlowStores to sub-components.

Constructors

NamespacedStateFlowStore [common]
constructor(store: StateFlowStore, namespace: String)

Functions

Name Summary
contains [common]
open operator override fun contains(key: String): Boolean
getData [common]
open override fun <T> getData(key: String, default: T): MutableValueFlow<T>
getData [common]
fun <T> StateFlowStore.getData(default: T): ReadOnlyProperty<Any?, MutableValueFlow<T>>
For use with by delegation. Returns the StateFlowStore entry for the key that equals the property name.