You need to sign in to do that
Don't have an account?

used wired method in lwc or imparative method in lwc
Is calling wired method in lwc is good practices. or imperative method ?
You need to sign in to do that
Don't have an account?
Is calling wired method in lwc is good practices. or imperative method ?
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.
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.apex_wire_method
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/apex
Please mark as Best Answer if above information was helpful.
Thanks,