rooteco / tweetscape-streams

3 stars 3 forks source link

Weird Hydration Issue #21

Closed ntorba closed 1 year ago

ntorba commented 2 years ago

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: https://github.com/remix-run/remix/issues/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 commented 1 year ago

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