How to get cart object outside the components
You can access the cart through the AppPluginStoreApi. This can be particularly helpful when you need to retrieve the cart object within a custom extension or in a filter that is not within the theme's components.
Usage
import { appPluginStoreApi } from '@appmaker-xyz/core';
const shopifyCart = appStorageApi().getState().shopifyCart;