Comments (4)
I can't reproduce how you are getting encoded cart id on my end.
cartSetIdDefault
is just setting the cart id into a cookie.
and cartGetIdDefault is just reading from the cookie.
So if there are some string encoding happening along the way, it's possible to override these 2 functions in createCartHandler
to be respective of the behaviour that you are encountering.
const cart = createCartHandler({
storefront,
getCartId: cartGetIdDefault(request.headers),
setCartId: cartSetIdDefault(),
cartQueryFragment: CART_QUERY_FRAGMENT,
});
from hydrogen.
Hi @wizardlyhel thanks for your reply and apologize for late respond, what's hydrogen version did you use ?
from hydrogen.
I checked both on 2023.7.15
and latest
from hydrogen.
Closing because we can't reproduce. Please re-open if it's still an issue.
from hydrogen.
Related Issues (20)
- MiniOxygen encountered an error while running your app's entry point HOT 4
- MiniOxygen encountered an error while running your app's entry point HOT 4
- shopify hydrogen deploy fails with "Could not resolve "virtual:remix/server-build"" HOT 3
- Customer Account API integration not working when logging out from hosted pages HOT 2
- useOptimisticCart broken in bundle products HOT 1
- Hydrogen quickstart is not working properly HOT 1
- After remove & reinstall "node_modules" & "package-lock.json" get "TypeError: __vite_ssr_import_2__.default is not a function" HOT 2
- ShopAnalytics not exported from AnalyticsProvider HOT 1
- Different prices with the storefront API HOT 3
- CLI falsely reporting an upgrade is available HOT 3
- Cart Bug: Deleted Items Reappear When Navigating Back from Checkout HOT 1
- Skeleton header NavLinks getting a canceled request HOT 3
- "Bad request: Unauthorized" for Customer Account API Login for Shopify Hydrogen Development (Hosted through Ngrok) HOT 3
- Inconsistent cart lines order HOT 2
- Customer Account API "classic" password login available? HOT 1
- cant connect store to hydrogen HOT 5
- [API Issue] cartCreate mutation errors upon startup in headless storefronts HOT 1
- Subrequest Profiler 500 error (flameChartJs is not defined) HOT 3
- Better custom cart fragment typing HOT 1
- Linked to hydrogen storefront, now products aren't showing HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hydrogen.