Shopify / hydrogen-demo-store

This template contains a full-featured setup of components, queries and tooling to get started with Hydrogen. It is deployed to https://hydrogen.shop
100 stars 34 forks source link

Suspense boundary error on page refresh with Analytics.Provider enabled #66

Open ysj151215 opened 2 months ago

ysj151215 commented 2 months ago

When the Analytics.Provider is set in the Shopify Hydrogen codebase and there are items in the shopping cart, refreshing the page causes the following error:

This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.

Expected Behavior:

The page should load without errors, and the Suspense boundary should not switch to client rendering.

Screenshots:

CleanShot 2024-07-11 at 11  14 21@2x