Home > @theatre/dataverse > Atom

Atom class

Signature:

export default class Atom<State extends {}> implements IdentityDerivationProvider 

Implements: IdentityDerivationProvider

Constructors

Constructor Modifiers Description
(constructor)(initialState) Constructs a new instance of the Atom class

Properties

Property Modifiers Type Description
$$isIdentityDerivationProvider (not declared)
pointer Pointer<State>
reduceState PathBasedReducer<State, State>

Methods

Method Modifiers Description
getIdentityDerivation(path)
getIn(path)
getState()
setIn(path, val)
setState(newState)