criskell
criskell
TtRPC
Created by criskell on 6/23/2024 in #❓-help
Shopping cart + TRPC
What is the best practice for me to add a "cartId" cookie when performing a "cart.addItem" mutation? This cookie would store the order ID in the database. How can I be doing this? I'm using Next.js but I believe I will move tRPC to a separately hosted API on an Express/Fastify server
2 replies