hashiverse-client-web - v1.0.4
    Preparing search index...

    Module tools/UserSettingsCache

    Client-side cache of user settings, fetched once at the App level and passed down to all routes that render posts.

    These settings are authoritative in the Rust/WASM layer (MetaPostManager). This cache avoids repeated WASM round-trips during rendering. The cache is always populated synchronously: the initial values are pre-fetched at top-level bootstrap (before React mounts) and passed in as initial. When the user logs in/out, the parent fetches fresh settings before swapping them in via replace(). When settings change in the config tab, callers invalidate() which re-fetches and updates state. There is never a "still loading" state visible during render.

    Interfaces

    UserSettings
    UserSettingsCache

    Type Aliases

    ContentThresholds

    Variables

    EMPTY_USER_SETTINGS

    Functions

    fetch_user_settings
    useUserSettingsCache