Member Junction
    Preparing search index...

    Registry that maps compound keys (BaseClassName::Key) to dynamic import() loaders.

    Wired to ClassFactory via WireToClassFactory() so that any GetRegistrationAsync() or CreateInstanceAsync() call that misses synchronously will automatically trigger the correct lazy chunk load. This replaces the previous pattern where individual components (ResourceContainerComponent, TabContainerComponent, etc.) each had their own retry logic.

    Index

    Constructors

    Methods

    • Read-only snapshot of the registry state — for diagnostic tools. Groups compound keys by chunk (the underlying loader function) so inspectors can show "X chunks, Y loaded" plus the keys covered by each.

      Returns {
          chunkCount: number;
          chunks: { chunkId: string; keys: string[]; loaded: boolean }[];
          loaded: string[];
          registered: string[];
      }

    • Attempt to lazy-load the chunk for a given compound key. Returns true if the key was found in the registry and loaded. Deduplicates concurrent loads of the same chunk.

      Parameters

      • compoundKey: string

        Format: "BaseClassName::Key" (e.g., "BaseResourceComponent::HomeDashboard")

      Returns Promise<boolean>

    • Register a single compound key with its loader function.

      Parameters

      • compoundKey: string

        Format: "BaseClassName::Key" (e.g., "BaseResourceComponent::HomeDashboard")

      • loader: () => Promise<void>

        Dynamic import function that loads the chunk containing the class

      Returns void

    • Wires this registry to ClassFactory as a lazy loader. After calling this, any ClassFactory.GetRegistrationAsync() or CreateInstanceAsync() that fails to find a registration synchronously will call back into this registry with the compound key (baseClassName::key) to trigger lazy loading.

      Returns void