( ref: () => AtomRef.AtomRef<A>, prop: K )
| 326 | * @since 4.0.0 |
| 327 | */ |
| 328 | export const useAtomRefProp = <A, K extends keyof A>( |
| 329 | ref: () => AtomRef.AtomRef<A>, |
| 330 | prop: K |
| 331 | ): Accessor<AtomRef.AtomRef<A[K]>> => createMemo(() => ref().prop(prop)) |
| 332 | |
| 333 | /** |
| 334 | * Returns a Solid accessor for the value of a property ref derived from an atom |
no test coverage detected