Skip to main content

How would I specify the order the execution of @wire decorators in javascript in lwc.

 

My scenario:

check = false;

@wire(...)wireMethod1{

    this.check = true;

}

if(this.check){

   @wire(...)wireMethod2;

}

2 comentarios
  1. 25 feb 2020, 3:25
    I'd like to have a conditional wire because it uses a variable (apart from this.check) which is set in wireMethod1
0/9000