Loading tutorials
@salesforce/apex import. It is the link between a component's JavaScript and a method in an Apex class. I assume you know ES module syntax, can write a basic LWC, and have already exposed an Apex method with @AuraEnabled, as in the previous chapter. The chapter has no cal6 min readnull instead of an error.4 min readasync keyword. It also assumes you have already imported an Apex method and called it from an event handler. Here you learn what that call returns, how the result and errors reach your code, and how to combine se5 min readasync/await and know basic Apex exception handling (try/catch, custom exception classes).5 min read@AuraEnabled method and import it into a Lightning Web Component. You should also know the difference between a wire call and an imperative call. Here we look at what the cacheable option changes, what it forbids, and how it affects imperative calls.5 min read@AuraEnabled and call it from a component.5 min readasync/await, track isLoading and error state, and read a basic @AuraEnabled controller. Here you will learn to stop a component from calling Apex more often than it needs to.5 min readasync/await and Promises behave, and you have a Salesforce DX project with @salesforce/sfdx-lwc-jest installed. You will test the contactSearch component from earlier chapters without touching a real org.4 min read