Salesforce Fact #361 | Passing null to apex method from LWC wire service
Do you know while calling apex method from LWC using wire service if we do not want to pass the input parameter, we need to pass null or do not pass the value at all. Passing undefined won't call the apex method.
For more details, please check: https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.apex_wire_method
Attached are the screenshots.
Comments
Post a Comment