criskell
criskell5mo ago

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
0 Replies
No replies yetBe the first to reply to this messageJoin