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 comentários
  1. 25 de fev. de 2020, 03: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