Skip to content

fix: resolve synchronous state updates inside useEffect to prevent cascading renders in ThemeToggle#339

Open
DebasmitaBose0 wants to merge 1 commit into
Akshay473:mainfrom
DebasmitaBose0:fix/theme-toggle-cascading-renders
Open

fix: resolve synchronous state updates inside useEffect to prevent cascading renders in ThemeToggle#339
DebasmitaBose0 wants to merge 1 commit into
Akshay473:mainfrom
DebasmitaBose0:fix/theme-toggle-cascading-renders

Conversation

@DebasmitaBose0

Copy link
Copy Markdown
Contributor

Closes #338

Summary

Clean mount state initialization in the ThemeToggle component.

Changes Made

  • Wrapped mount status initialization inside requestAnimationFrame.

Testing

  • Verified eslint status checks on ThemeToggle.tsx.
  • Confirmed theme switching transitions work as expected in the browser.

Impact

Enforces clean React mounting cycles.

Checklist

  • Code follows project standards
  • Tested locally
  • No unrelated changes included
  • Responsive design verified
  • Accessibility considered

@vercel

vercel Bot commented Jun 6, 2026

Copy link
Copy Markdown

@DebasmitaBose0 is attempting to deploy a commit to the akshay473's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GSSOC] Resolve mount render violations in ThemeToggle

1 participant