次のコード スニペットを参照してください。 開発者は Lightning Web コンポーネントで問題を経験しています。コンポーネントは、現在ログインしているユーザーが所有する商談に関する情報を表示する必要があります。 コンポーネントがレンダリングされると、「データ取得エラー」というメッセージが表示されます。 この問題を解決するには、Apex クラスにどの変更を実装する必要がありますか?
正解:A
The @AuraEnabled(cacheable=true) attribute allows caching of method results on the client side, reducing server trips for already fetched data, which is useful for read-only data. References: Aura Components Developer Guide - AuraEnabled Annotation