Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
chore(ui): drop unused relationships store exports
Josh Corbettfbb513f99c4b
diff --git a/invokeai/frontend/webv2/src/features/models/data/relationshipsStore.ts b/invokeai/frontend/webv2/src/features/models/data/relationshipsStore.tsindex a99893ee86..8e628f8e8d 100644--- a/invokeai/frontend/webv2/src/features/models/data/relationshipsStore.ts+++ b/invokeai/frontend/webv2/src/features/models/data/relationshipsStore.ts@@ -15,9 +15,9 @@ import { addModelRelationship, getRelatedModelKeys, removeModelRelationship } fr** The backend's batch endpoint (`POST /model_relationships/batch`) is* deliberately unused — it returns a flat de-duplicated union across the input- * keys, which cannot populate a per-key cache. Parallel single-key fetches via- * `ensureManyRelatedModelKeysLoaded` provide batch loading with attributable- * results.+ * keys, which cannot populate a per-key cache. Per-key fetches through+ * `ensureRelatedModelKeysLoaded` stay attributable and dedupe on the inflight+ * map.*/export interface ModelRelationshipsSnapshot {@@ -106,11 +106,6 @@ export const ensureRelatedModelKeysLoaded = (modelKey: string): Promise<void> =>/** Stale-while-revalidate: any cached entry keeps rendering while it refetches. */export const refreshRelatedModelKeys = (modelKey: string): Promise<void> => fetchRelatedKeys(modelKey);-/** Parallel per-key ensure for multi-model surfaces; shares the inflight map. */-export const ensureManyRelatedModelKeysLoaded = async (modelKeys: readonly string[]): Promise<void> => {- await Promise.all(modelKeys.map((key) => ensureRelatedModelKeysLoaded(key)));-};-type EntryPatch = (entry: readonly string[], otherKey: string) => readonly string[];/** Links are bidirectional: apply the patch to both cached directions. */@@ -196,8 +191,6 @@ export const removeModelsFromRelationships = (keys: readonly string[]): void =>export const getRelationshipsSnapshot = (): ModelRelationshipsSnapshot => store.getSnapshot();-export const useRelationshipsSelector = store.useSelector;-/** Related keys for one model; `null` means not fetched yet (or no model). */export const useRelatedModelKeys = (modelKey: string | null): readonly string[] | null =>store.useSelector(