Expose cartFetch
#1798
Replies: 3 comments
-
Also: on the |
Beta Was this translation helpful? Give feedback.
-
Hi @JaapWeijland thanks for the feedback! We are definitely looking to refactor the |
Beta Was this translation helpful? Give feedback.
-
Just to chime in, maybe not that related - but I would love for the types of callbacks to be annotated with |
Beta Was this translation helpful? Give feedback.
-
Hi there,
We are using carts. Because we currently don't support customer creation, we want to store the cart id externally, and fetch this cart on server hit / page load via url query params. Unfortunately, there seems to be no way to inject the cart id so that Hydrogen may load a cart created in an earlier session.
In the source code, I've found a function called
cartFetch
, which is not exposed. This function is placed on the same level as the other actions that are exposed, likecartCreate
, so exposing this seems not much of a hassle. Why isn't it exposed? Could this action be exposed? It would fit our use case perfectly.Beta Was this translation helpful? Give feedback.
All reactions