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