(registry: AtomRegistry.AtomRegistry, atom: () => Atom.Atom<A>)
| 77 | const constImmediate = { immediate: true } |
| 78 | |
| 79 | function mountAtom<A>(registry: AtomRegistry.AtomRegistry, atom: () => Atom.Atom<A>): void { |
| 80 | createComputed(() => { |
| 81 | onCleanup(registry.mount(atom())) |
| 82 | }) |
| 83 | } |
| 84 | |
| 85 | function setAtom<R, W, Mode extends "value" | "promise" | "promiseExit" = never>( |
| 86 | registry: AtomRegistry.AtomRegistry, |
no test coverage detected