ScopedRecoilContext
public class ScopedRecoilContext
Represents a scoped context for Recoil values, allowing binding and updates.
-
Undocumented
Declaration
Swift
public func useValue<Value>(_ valueNode: Value) -> Value.T? where Value : RecoilNode
-
Undocumented
Declaration
Swift
public func useBinding<Value>(_ node: Value, default: Value.T) -> Binding<Value.T> where Value : RecoilNode, Value : Writeable
-
Undocumented
Declaration
Swift
public func useLoadable<Value>(_ valueNode: Value) -> LoadableContent<Value.T> where Value : RecoilNode
-
Undocumented
Declaration
Swift
public func useUpdate<Value>(_ stateNode: Value) -> (Value.T) -> Void where Value : RecoilNode, Value : Writeable
-
Undocumented
Declaration
Swift
public func useCallback<T>(_ fn: @escaping Callback<T>) -> T
-
useCallback(_:
Asynchronous) Undocumented
Declaration
Swift
public func useCallback<T>(_ fn: @escaping AsyncCallback<T>) async throws -> T
-
Undocumented
Declaration
Swift
public func useCallback<T, P>(_ fn: @escaping Callback1<P, T>) -> (P) -> T
-
Undocumented
Declaration
Swift
public func useCallback<T, P>(_ fn: @escaping AsyncCallback1<P, T>) -> (P) async throws -> T
-
Undocumented
Declaration
Swift
public func useUnsafeValue<Value>(_ valueNode: Value) -> Value.T where Value : RecoilSyncNode
-
Undocumented
Declaration
Swift
public func useThrowingValue<Value>(_ valueNode: Value) throws -> Value.T where Value : RecoilSyncNode
-
Undocumented
Declaration
Swift
public func useUnsafeBinding<Value>(_ stateNode: Value) -> Binding<Value.T> where Value : RecoilSyncNode, Value : Writeable
-
Undocumented
Declaration
Swift
public func useThrowingBinding<Value>(_ stateNode: Value) -> ThrowingBinding<Value.T> where Value : RecoilSyncNode, Value : Writeable