Skip to content

SSR-Safe localStorage Usage #51

@lak7

Description

@lak7

Problem: In src/app/settings/settingsClient.tsx direct localStorage usage without SSR safety checks can cause hydration mismatches in Next.js server-side rendering contexts.

Context: This line is executed in handleGithubOAuthDisconnect function within a client component, but without checking if window is defined or using proper SSR-safe patterns.

Expected Behavior: localStorage operations should only occur on the client side after hydration is complete, typically wrapped in useEffect or with typeof window !== 'undefined' checks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions