AbstractReadonly$An Observable of the state of this store object.
ProtectedactiveProtected OptionallastProtectedsubscribersProtectedactivateAssigns the given values to state of this store object. The resulting state will be like Object.assign(store.state(), value).
ProtecteddeactivateAbstractdeleteRemoves the state represented by this store object from its parent. E.g. to remove the current user:
store('currentUser').delete();
ProtectedisProtected AbstractmaybeProtected AbstractmaybeProtectedmaybeRuns func on a shallow clone of the state, replacing the state with the clone. The first argument to func will be the cloned state, followed by the arguments in args.
WARNING: You SHOULD NOT use a function that will mutate nested objects within the state.
AbstractrefersAbstractsetReplace the state represented by this store object with the given value.
Runs func on the state and replaces it with the return value. The first argument to func will be the state, followed by the arguments in args.
WARNING: You SHOULD NOT use a function that will mutate the state.
AbstractstateRetrieve the current state represented by this store object.
Protectedupdate
Select a slice of the store to operate on. For example
store('currentUser')will return a newStorethat represents thecurrentUserproperty.