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(Token): hydration errors with Framer Motion #435

Merged
merged 5 commits into from
Aug 12, 2024

Conversation

DiogoSoaress
Copy link
Member

What it solves

Hydration errors shown in the console.
Framer Motion animations are client-side only. When the pages are rendering on the server with SSR, these components do not exist causing hydration errors like

Screenshot 2024-08-07 at 12 20 28

How this PR fixes it

Load components using Framer Motion on the client-side with next/dynamic

Copy link

github-actions bot commented Aug 7, 2024

Branch preview

✅ Deployed successfully in branch deployment:

https://fix_hydration_token_page--homepage.review.5afe.dev

@DiogoSoaress DiogoSoaress merged commit bb690f0 into main Aug 12, 2024
4 checks passed
@DiogoSoaress DiogoSoaress deleted the fix-hydration-token-page branch August 12, 2024 16:18
@github-actions github-actions bot locked and limited conversation to collaborators Aug 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants