frontend
    Preparing search index...
    • Hook that manages meta-AI profile persistence in localStorage. Provides save/load/clear operations for a given game key.

      Parameters

      • gameKey: string

      Returns {
          clearProfile: () => void;
          loadProfile: () => unknown;
          saveProfile: (profile: unknown) => void;
      }

      • clearProfile: () => void

        Remove profile data from localStorage.

      • loadProfile: () => unknown

        Load profile data from localStorage. Returns undefined if not found or malformed.

      • saveProfile: (profile: unknown) => void

        Save profile data to localStorage. No-op if profile is falsy.