Skip to content

fix(component-mounting): beam animation not working on load#642

Merged
imohammedh merged 1 commit intomainfrom
fix-how-to-start-section-animation
Mar 14, 2026
Merged

fix(component-mounting): beam animation not working on load#642
imohammedh merged 1 commit intomainfrom
fix-how-to-start-section-animation

Conversation

@imohammedh
Copy link
Copy Markdown
Member

@imohammedh imohammedh commented Mar 14, 2026

Beams were rendering before the refs were ready, so they'd get null and break. Wrapping them in an isMounted state that flips in a useEffect makes sure they only render after the DOM is set up ,consistent every time.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
notevo Building Building Preview, Comment Mar 14, 2026 0:56am

@imohammedh imohammedh merged commit fbb975e into main Mar 14, 2026
1 of 2 checks passed
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.

1 participant