Type Aliases
The following type aliases are available globally.
-
Atoms are units of state. They’re updatable and subscribable: when an atom is updated, each subscribed component is re-rendered with the new value.
They can be created at runtime, too. Atoms can be used in place of local component state. If the same atom is used from multiple components, all those components share their state.
let allBookState = atom { [Book]() }
You can retrive value with
Recoil hooks
, eg:useRecoilState(allBookState)
Declaration
Swift
public typealias AtomCombineGet<T, E> = () throws -> AnyPublisher<T, E> where T : Equatable, E : Error
-
AtomAsyncGet
AsynchronousUndocumented
Declaration
Swift
public typealias AtomAsyncGet<T> = () async throws -> T where T : Equatable
-
Undocumented
Declaration
Swift
public typealias AtomFamily<P, T> = (P) -> RecoilParamNode<P, Atom<T>> where P : Hashable, T : Equatable
-
Undocumented
Declaration
Swift
public typealias AsyncAtomFamily<P, T> = (P) -> RecoilParamNode<P, AsyncAtom<T>> where P : Hashable, T : Equatable
-
Undocumented
Declaration
Swift
public typealias AtomFamilyGet<P, T> = (P) -> T
-
Undocumented
Declaration
Swift
public typealias AtomFamilyCombineGet<P, T, E> = (P) -> AnyPublisher<T, E> where E : Error
-
AtomFamilyAsyncGet
AsynchronousUndocumented
Declaration
Swift
public typealias AtomFamilyAsyncGet<P, T> = (P) async throws -> T
-
Undocumented
Declaration
Swift
public typealias RecoilMutableSyncNode = RecoilSyncNode & Writeable
-
Undocumented
Declaration
Swift
public typealias RecoilMutableAsyncNode = RecoilAsyncNode & Writeable
-
Undocumented
Declaration
Swift
public typealias SelectorFamily<P, T> = (P) -> RecoilParamNode<P, Selector<T>> where P : Hashable, T : Equatable
-
Undocumented
Declaration
Swift
public typealias AsyncSelectorFamily<P, T> = (P) -> RecoilParamNode<P, AsyncSelector<T>> where P : Hashable, T : Equatable
-
Undocumented
Declaration
Swift
public typealias SelectorFamilyGet<P, T> = (P, StateGetter) throws -> T
-
Undocumented
Declaration
Swift
public typealias SelectorFamilyCombineGet<P, T, E> = (P, StateGetter) -> AnyPublisher<T, E> where E : Error
-
SelectorFamilyAsyncGet
AsynchronousUndocumented
Declaration
Swift
public typealias SelectorFamilyAsyncGet<P, T> = (P, StateGetter) async throws -> T
-
Undocumented
Declaration
Swift
public typealias SetBody<T> = (MutableContext, T) -> Void
-
Undocumented
Declaration
Swift
public typealias CombineGet<T, E> = (StateGetter) throws -> AnyPublisher<T, E> where T : Equatable, E : Error
-
Undocumented
Declaration
Swift
public typealias SyncGet<T> = (StateGetter) throws -> T
-
AsyncGet
AsynchronousUndocumented
Declaration
Swift
public typealias AsyncGet<T> = (StateGetter) async throws -> T where T : Equatable
-
Undocumented
Declaration
Swift
public typealias Callback<R> = (RecoilCallbackContext) -> R
-
AsyncCallback
AsynchronousUndocumented
Declaration
Swift
public typealias AsyncCallback<R> = (RecoilCallbackContext) async throws -> R
-
Undocumented
Declaration
Swift
public typealias Callback1<P, R> = (RecoilCallbackContext, P) -> R
-
AsyncCallback1
AsynchronousUndocumented
Declaration
Swift
public typealias AsyncCallback1<P, R> = (RecoilCallbackContext, P) async throws -> R
-
Undocumented
Declaration
Swift
public typealias Callback2<P1, P2, R> = (RecoilCallbackContext, P1, P2) -> R
-
AsyncCallback2
AsynchronousUndocumented
Declaration
Swift
public typealias AsyncCallback2<P1, P2, R> = (RecoilCallbackContext, P1, P2) async throws -> R
-
Undocumented
Declaration
Swift
public typealias StateAccessor = StateGetter & StateSetter
-
Undocumented
Declaration
Swift
public typealias HookView = Hooks.HookView
-
Undocumented
Declaration
Swift
public typealias HookScope = Hooks.HookScope