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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suspense boundary error on page refresh with Analytics.Provider enabled

ysj151215 opened this issue · comments

commented

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