fix(theme): disable animations during theme switch for instant transition#853
fix(theme): disable animations during theme switch for instant transition#853tannerlinsley merged 1 commit intomainfrom
Conversation
✅ Deploy Preview for tanstack ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe changes implement a theme-switching optimization that temporarily applies a Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |

Summary
theme-switchingclass to<html>during theme swaps that forcestransition: noneand zero-duration animations on every element/pseudo-elementupdateThemeClassapplies the class, forces a reflow, then removes it after tworequestAnimationFrames so normal animations resume afterwardTest plan
Summary by CodeRabbit
Bug Fixes