Skip to main content

Hi All,

 

How to Process results from two different @wire methods after the @wires are finished in Lightning web component.

 

I need to process something in the end based on the results obtained from the above 2 wire results. How to achieve this synchronous process in Lightning web component?

 

How can I process 2nd @wire method based only after the 1st @wire has processed and got the result from it. How can I make it a synchronous process that it runs one after the another rather than running it as asynchronous process.

 

Thanks in advance

2 Kommentare
  1. 21. Juni 2020, 15:58
    Hi @1077522459

    ,

    Thank you for your response.

    Is it the best approach or ls there any other way to achieve this.

    As I read that this promise chaining cause a minor performance penalty and is not the best approach in the below link:

    https://salesforce.stackexchange.com/questions/295726/process-results-from-two-different-wire-methods-after-the-wires-are-finished

    Is there any way to achieve Synchronous process in lwc

    Thank you once again,

0/9000