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 条评论
  1. 2020年2月25日 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