Does anyone know about config & deps in checkout like below code -

<item name="config" xsi:type="array">
      <item name="deps" xsi:type="array">
            <item name="0" xsi:type="string">checkout.steps.shipping-step.shippingAddress</item>
                  <item name="1" xsi:type="string">checkout.steps.billing-step.payment</item>
  • @MuhammadHasham sorry to say this,but still i am not fully understand. – sumeet bajaj Apr 23 '19 at 7:21

If you want to load testchild component before testchildtwo then you should configure it in xml config node. Inside config node we have to define node . Deps node is array and can contains more that one component. In our case we defined only one component checkout.testchild.

<item name="deps" xsi:type="array"> 
     <item name="0" xsi:type="string">checkout.testchild</item> 

Deps name must contain full component name, in our case it is: checkout.testchild. Our component depends to component checkout.testchild.

Reference: https://potkoc.com/2018/11/10/magento-2-ui-components-dependency/

I hope this will help

| improve this answer | |
  • Thanks for your reply,i will just do upvote,i will not accept answer until fully understand – sumeet bajaj Apr 23 '19 at 7:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.