MCPcopy Create free account
hub / github.com/Effect-TS/effect / useAtomMount

Function useAtomMount

packages/atom/solid/src/Hooks.ts:142–145  ·  view source on GitHub ↗
(atom: () => Atom.Atom<A>)

Source from the content-addressed store, hash-verified

140 * @since 4.0.0
141 */
142export 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.

Callers

nothing calls this directly

Calls 1

mountAtomFunction · 0.70

Tested by

no test coverage detected