hydrogen icon indicating copy to clipboard operation
hydrogen copied to clipboard

Deferred response never resolves when there is a hydration error

Open danielmoraes opened this issue 2 years ago • 1 comments

What is the location of your example repository?

https://github.com/Form-Factory/sample-hydrogen

Which package or tool is having this issue?

Hydrogen

What version of that package or tool are you using?

2023.4.5

What version of Remix are you using?

1.17.1

Steps to Reproduce

You can reproduce the issue with the repo above, by reloading the home page a few times.

In general, you can reproduce it by:

  • Force a hydration error (see options here)
  • Defer a promise in the loader
  • See that the deferred data sometimes loads, some other times doesn't

This issue is also being discussed here.

Expected Behavior

The featured products and collections to load.

drawing

Actual Behavior

The featured products and collections promises never resolves, thus doesn't load.

drawing

danielmoraes avatar Aug 03 '23 17:08 danielmoraes

Hi! It seems it was fixed in Remix https://github.com/remix-run/remix/issues/5165 but not released yet.

frandiox avatar Aug 21 '23 11:08 frandiox

Should be resolved with newer remix versions.

blittle avatar Jun 21 '24 20:06 blittle