Skip to content

How to mixin a js action when there is already a mixin declared on it

I need to apply some additional code to Magento_Checkoutjsset-shipping-information.js.

However, I have got a third party module which already declared a mixin on it

        'Magento_Checkout/js/action/set-shipping-information': {
            'Amasty_Checkout/js/action/set-shipping-information-mixin': amasty_mixin_enabled
        },

How can apply my second mixin? Is it just a matter of:

        'Magento_Checkout/js/action/set-shipping-information': {
            'Foodentyco_Checkout/js/action/set-shipping-information-mixin': true
        },

Many thanks