AtomScope
class AtomScope
Provides a scope for creating Atoms that manage state in different AtomStores.
Similar to Atom, each instance acts as a key representing a single scope.
Usage:
val navGraphScope = atomScope()
val screenScope = atomScope()
val counter1Atom = atom(0, scope = navGraphScope)
val counter2Atom = atom(0, scope = screenScope)
Content copied to clipboard