Package: @effect/atom-react
Module: Hooks
Subscribes to a property ref derived from an atom ref and returns its current value.
When to use
Use when a React component needs only the current value of one property from
an object-shaped AtomRef.
Details
The hook composes useAtomRefProp(ref, prop) with useAtomRef, so the
property ref is memoized for the [ref, prop] pair and then subscribed
through ref.subscribe.
See
useAtomRefProp for returning the property ref directlyuseAtomRef for subscribing to a whole atom ref valueSignature
declare const useAtomRefPropValue: <A, K extends keyof A>(ref: AtomRef.AtomRef<A>, prop: K) => A[K]
Since v4.0.0