(registry: AtomRegistry.AtomRegistry, atom: Atom.Atom<A>)
| 123 | } |
| 124 | |
| 125 | function mountAtom<A>(registry: AtomRegistry.AtomRegistry, atom: Atom.Atom<A>): void { |
| 126 | React.useEffect(() => registry.mount(atom), [atom, registry]) |
| 127 | } |
| 128 | |
| 129 | function setAtom<R, W, Mode extends "value" | "promise" | "promiseExit" = never>( |
| 130 | registry: AtomRegistry.AtomRegistry, |
no test coverage detected