Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

148
Visualizações
Should I store Shopify Checkout ID in localstorage or cookie? --React Storefront

I'm creating a shopify storefront using react, and I want to store the checkout ID (returned from shopify) in either cookies, localstorage, or session storage so that when an unlogged in user returns to the site shortly after shopping, I can make a call to get the current checkout from the ID (checkout includes current cart), and populate their cart.

I haven't been able to get a clear answer on what is standard/the better option here. I've seen store with both, and I know shopify uses cookies to start a cartID (not from their api), but they are in a different situation than a storefront.

Thanks all!

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda