refactor: 리펙토링

This commit is contained in:
DongHyeonka
2026-08-01 19:39:59 +09:00
parent 9c959ea2a5
commit c6da03369c
171 changed files with 20329 additions and 782 deletions
@@ -6,6 +6,7 @@ import { createRuntimeIdentityRegistry } from "../../src/contracts/query-keys.ts
function scope() {
let current = true;
const lifetime = new AbortController();
return {
snapshot: {
generation: 1,
@@ -13,10 +14,12 @@ function scope() {
identities: createRuntimeIdentityRegistry({
tokenFactory: () => crypto.randomUUID(),
}),
signal: lifetime.signal,
isCurrent: () => current,
},
expire: () => {
current = false;
lifetime.abort();
},
};
}