Package: @effect/atom-react
Module: Hooks
Returns a memoized atom ref for a property of another atom ref.
When to use
Use to derive an AtomRef for one property of an object-shaped atom ref.
Details
The hook memoizes ref.prop(prop) for the [ref, prop] dependency pair and
returns the property ref so callers can read, set, update, or subscribe to
that nested property.
See
useAtomRef for subscribing to an atom ref valueuseAtomRefPropValue for subscribing directly to a property valueSignature
declare const useAtomRefProp: <A, K extends keyof A>(ref: AtomRef.AtomRef<A>, prop: K) => AtomRef.AtomRef<A[K]>
Since v4.0.0