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..
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..