Add "use client"
to client-side components
#1051
Closed
filiphsps
started this conversation in
Ideas + Feature Requests
Replies: 1 comment
-
I think this is a duplicate of #867 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When importing
createStorefrontClient
in the following wayWe also indirectly import a bunch of other components such the
AddToCartButton
,BuyNowButton
, which results increateStorefrontClient
being unusable in the new nextjs app router.A simple work-around for this would be to add
"use client"
to the top of all files containing client-side components.nextjs error
Beta Was this translation helpful? Give feedback.
All reactions