Retail hardware, software, and Shopify Point of Sale
I am building a Shopify POS UI extension and I am updating the cart, and also reacting to cart updates. I am using the `useCartSubscription` hook, which by following the documentation should handle the 1 subscription per cart limitation of the `api.cart` hook.
import { useApi, useCartSubscription } from "@shopify/ui-extensions-react/point-of-sale";
export default function MyModal() {
const api = useApi<"pos.home.modal.render">();
const cart = useCartSubscription();
// Do stuff
return (/*stuff*/);
}
If I remove the cart subscription part, the error does not appear. But once I make a cart subscription, the extension gets that error banner.
Also, if I change the cart in my extension, then check the cart in the Shopify POS App, the same error banner appears.
What can I do about it?
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025