automate-sales / automate-commerce

next js ecommerce
MIT License
0 stars 0 forks source link

Issue for cartItemCount when user has cookies disabled #60

Open gkpty opened 4 months ago

gkpty commented 4 months ago

When a user has disabled cookies the cartId cannot be retrieved from cookies in the main layout. Instead the cartItem count should be calculated by the cart iCon itself which should be a client component that calls a server action with useEffect. This component can receive the cartId in props or fetch it from localStorage..