| 1 | import { AtomRegistry } from "effect/reactivity"; |
| 2 | |
| 3 | import { |
| 4 | disposeOnFoundationReplace, |
| 5 | type FoundationHotModule, |
| 6 | } from "../lib/foundation-fast-refresh"; |
| 7 | |
| 8 | declare const module: { readonly hot?: FoundationHotModule } | undefined; |
| 9 | |
| 10 | export const appAtomRegistry = AtomRegistry.make(); |
| 11 | |
| 12 | disposeOnFoundationReplace(typeof module === "undefined" ? undefined : module.hot, () => |
| 13 | appAtomRegistry.dispose(), |
| 14 | ); |