+ Start a Discussion
punit tyagi 12punit tyagi 12 

used wired method in lwc or imparative method in lwc

Is calling wired method in lwc is good practices. or imperative method ?




VinayVinay (Salesforce Developers) 
Hi Punit,

Lightning web components can import methods from Apex classes. The imported methods are functions that the component can call either via @wire or imperatively.  You can use either of them.


Please mark as Best Answer if above information was helpful.

Robert John 5Robert John 5
 the complete Taco Bell Menu Breakfast with prices 2022 and a regular Menu for you to browse from the comfort of your home.