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 Asynchronous

    Undocumented

    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 Asynchronous

    Undocumented

    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 Asynchronous

    Undocumented

    Declaration

    Swift

    public typealias SelectorFamilyAsyncGet<P, T> = (P, StateGetter) async throws -> T

Sync Selector