(atom: () => Atom.Atom<A>)
| 140 | * @since 4.0.0 |
| 141 | */ |
| 142 | export const useAtomMount = <A>(atom: () => Atom.Atom<A>): void => { |
| 143 | const registry = useContext(RegistryContext) |
| 144 | mountAtom(registry, atom) |
| 145 | } |
| 146 | |
| 147 | /** |
| 148 | * Returns a setter for a writable atom without subscribing to its value. |
nothing calls this directly
no test coverage detected