Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix-#94: Fixed theme toggle button's flickering issue #115

Conversation

Janith-Chamikara
Copy link
Contributor

Summary

This PR is to fix the [BUG] In Theme-Toggle-Button #98
#98

Description

This issue occurerd because callback function implemented inside useEffect only calls after the dom mutaions and browser paints the screen.So here instead of using useEffect I implented useLayoutEffect as the callback function inside the useLayoutEffect runs before the browser paints the screen.

Images

Wanderlust.-.Google.Chrome.2024-03-29.12-04-15.mp4

Issue(s) Addressed

94

Prerequisites

Copy link

vercel bot commented Mar 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
wanderlust ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 29, 2024 6:40am
wanderlust-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 29, 2024 6:40am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Centralised Error Handling
1 participant