Answer should be BC
To control when the method invocation occurs (for example, in response to clicking a button), call the method imperatively.
In the following scenarios, you must call an Apex method imperatively as opposed to using @wire.
To call a method that isn’t annotated with cacheable=true, which includes any method that inserts, updates, or deletes data.
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.apex_call_imperative
In the following scenarios, you must call an Apex method imperatively as opposed to using @wire:
To call a method that isn’t annotated with cacheable=true, which includes any method that inserts, updates, or deletes data.
To control when the invocation occurs.
To work with objects that aren’t supported by User Interface API, like Task and Event.
To call a method from an ES6 module that doesn’t extend LightningElement
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
beardAnt
4 weeks, 1 day agoaregas
5 months, 2 weeks agoAppleDash
1 year, 8 months ago