⚡
ForceHires
beta
Jobs
Practice
Drill
My Profile
Recruiters
Sign in
← All questions
LWC
Medium
Imperative Apex vs. @wire
When should you call an Apex method imperatively instead of wiring it?
A
When the operation should run at a moment you control — like a button click — or performs DML
B
Whenever the method takes parameters
C
Imperative calls are legacy; @wire should always be used
D
Only when the component has no template
Submit answer