Skip to content

fix(ssr): <style> re-attach causing unwanted animations#6540

Merged
johnjenkins merged 1 commit intomainfrom
fix-double-style-render
Jan 12, 2026
Merged

fix(ssr): <style> re-attach causing unwanted animations#6540
johnjenkins merged 1 commit intomainfrom
fix-double-style-render

Conversation

@johnjenkins
Copy link
Contributor

@johnjenkins johnjenkins commented Jan 9, 2026

What is the current behavior?

In 4.35.2 (#6311) there was a regression that causes CSS animations to restart when an SSR page is hydrated in Next.js dev mode using runtime-based SSR.

GitHub Issue Number: N/A

What is the new behavior?

CSS animations only play once.

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

Other information

@johnjenkins johnjenkins requested a review from a team as a code owner January 9, 2026 22:22
@johnjenkins johnjenkins changed the title fix(ssr): double style render fix(ssr): <style> re-attach causing unwanted animations Jan 9, 2026
Copy link
Contributor

@OS-jacobbell OS-jacobbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and works in my testing!

@johnjenkins johnjenkins added this pull request to the merge queue Jan 12, 2026
Merged via the queue into main with commit 43608fa Jan 12, 2026
69 checks passed
@johnjenkins johnjenkins deleted the fix-double-style-render branch January 12, 2026 17:32
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.

2 participants