StoresynkStoreProps
Defined in: @storesynk/next/dist/components/StoresynkStore.d.ts:11
Server-rendered
Properties
Section titled “Properties”children?
Section titled “children?”
optionalchildren?:any
Defined in: @storesynk/next/dist/components/StoresynkStore.d.ts:44
className?
Section titled “className?”
optionalclassName?:string
Defined in: @storesynk/next/dist/components/StoresynkStore.d.ts:43
Forwarded to the
country?
Section titled “country?”
optionalcountry?:string
Defined in: @storesynk/next/dist/components/StoresynkStore.d.ts:12
customer?
Section titled “customer?”
optionalcustomer?:RestoredCustomerSession|null
Defined in: @storesynk/next/dist/components/StoresynkStore.d.ts:24
Per-request restored customer session (from getRequestCustomer()) -
stamps ss-logged-in so auth-gated CSS is right on first paint. Null
passes through safely (logged-out render). NOTE: unlike the Astro
wrapper (which runs renderCustomerChrome over its rendered slot),
show-customer-* displayers OUTSIDE
fresh?
Section titled “fresh?”
optionalfresh?:boolean
Defined in: @storesynk/next/dist/components/StoresynkStore.d.ts:29
Bypass the persistent cache and fetch live (deduped per request) - for draft/preview reads that must reflect Shopify right now. The default cached path is webhook-invalidated (createStoresynkWebhookHandler), so most routes never need this.
language?
Section titled “language?”
optionallanguage?:string
Defined in: @storesynk/next/dist/components/StoresynkStore.d.ts:13
loadRuntime?
Section titled “loadRuntime?”
optionalloadRuntime?:boolean
Defined in: @storesynk/next/dist/components/StoresynkStore.d.ts:36
Render the elements-runtime loader (default true). Set false if you
place
locale?
Section titled “locale?”
optionallocale?:I18nState|null
Defined in: @storesynk/next/dist/components/StoresynkStore.d.ts:16
Per-request buyer market (from getRequestLocale()); wins over country/language and the config defaults. Null passes through safely.
persistLocale?
Section titled “persistLocale?”
optionalpersistLocale?:"localStorage"|"cookie"|"none"
Defined in: @storesynk/next/dist/components/StoresynkStore.d.ts:32
Locale persistence for the client store (‘cookie’ recommended alongside dynamic routes so the server can read the buyer’s market).
serverCart?
Section titled “serverCart?”
optionalserverCart?:boolean
Defined in: @storesynk/next/dist/components/StoresynkStore.d.ts:41
Server-owned cart: the cart id lives in an HttpOnly cookie and every mutation runs as a server action - the browser never learns the id. The standard actions/events protocol is unchanged. Default false (direct Storefront-API cart, localStorage id).
trackEvents?
Section titled “trackEvents?”
optionaltrackEvents?:boolean
Defined in: @storesynk/next/dist/components/StoresynkStore.d.ts:33