Suspense boundary error on page refresh with Analytics.Provider enabled
ysj151215 opened this issue · comments
Jay 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: