@polargold/pg-frontend-vue
    Preparing search index...

    Interface UseAppVersionCheckOptions

    interface UseAppVersionCheckOptions {
        getCurrentVersion: () => Promise<string | undefined>;
        getLoadedVersion: () => string | undefined;
        intervalMs?: number;
        isUpdateAlreadyFlagged: () => boolean;
        onUpdateAvailable: () => void;
        setLoadedVersion: (version: string) => void;
    }
    Index
    getCurrentVersion: () => Promise<string | undefined>

    Fetches the currently-deployed version (e.g. from a /version.json endpoint). Replaces the original's hardcoded fetch + Sentry.captureException on failure - report your own errors inside this callback if you want that. Return undefined on failure instead of throwing.

    getLoadedVersion: () => string | undefined

    Returns the version this session was loaded with. Replaces a direct Pinia store read.

    intervalMs?: number

    How often to poll, in milliseconds. Defaults to 300000 (5 minutes), matching the source copy.

    isUpdateAlreadyFlagged: () => boolean

    Returns whether an update has already been flagged - skips redundant checks once true.

    onUpdateAvailable: () => void

    Called when a poll finds a version different from getLoadedVersion().

    setLoadedVersion: (version: string) => void

    Records the version this session was loaded with, called once on initialize().