hydrogen
hydrogen copied to clipboard
Deferred response never resolves when there is a hydration error
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.
Actual Behavior
The featured products and collections promises never resolves, thus doesn't load.
Hi! It seems it was fixed in Remix https://github.com/remix-run/remix/issues/5165 but not released yet.
Should be resolved with newer remix versions.