kiliman / remix-hydration-fix

Sample app that shows how to fix React hydration issues in a Remix app
119 stars 9 forks source link

Hydration error when using ClientOnly within Suspense #3

Open zipme opened 1 year ago

zipme commented 1 year ago

Somehow the hydration error occurs when including a component that uses <ClientOnly> within Suspense.

See https://github.com/zipme/remix-hydration-fix/blob/main/app/routes/defer.tsx https://github.com/zipme/remix-hydration-fix/blob/main/app/components/Test.tsx