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

Weird Hydration Issue #21

Closed
ntorba opened this issue Sep 26, 2022 · 1 comment
Closed

Weird Hydration Issue #21

ntorba opened this issue Sep 26, 2022 · 1 comment

Comments

@ntorba
Copy link
Contributor

ntorba commented Sep 26, 2022

After some of @andrepology updates in the styling branch, I was getting a weird issue that is causing the accordion to load, then refresh in a fully expanded state.

attaching screenshots of the issues here

image
image
image

After googling, I went to the remix github, where I found this issue: remix-run/remix#2570, which has an (slightly unsatisfactory) solution to the problem.

Use

import { RemixBrowser } from '@remix-run/react'
import { hydrate } from 'react-dom'

hydrate(<RemixBrowser />, document)

instead of the hydrateRoot function.

hydrateRoot is only working in an incognito window, supposedly because of conflicts with 1 or more of the chrome extensions I am running

@ntorba
Copy link
Contributor Author

ntorba commented Nov 8, 2022

this was an issue with MUI and remix not playing nice. Removed MUI

@ntorba ntorba closed this as completed Nov 8, 2022
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

No branches or pull requests

1 participant