![]() Storable actions enable you to cache virtually anything (whatever the server method call returns): a record, a collection of records, a composite object, a custom data structure, data returned by a callout to a third-party service, and so on. Server actions enable you to access data using a traditional rpc approach: You implement some logic in Apex that you expose as a remotely invocable method. ![]() Storable actionsĪ storable action is a server action whose response is stored in the client cache so that subsequent requests for the same server method with the same set of arguments can be accessed from that cache. You can also implement a custom caching solution. The Lightning Component Framework has two built-in mechanisms for client-side caching (storable actions and Lightning Data Service). This can significantly reduce the number of server round-trips, and improve the performance of your Lightning components. For example, if all the components you build make their own isolated calls to the server to retrieve the data they need, you’ll probably end up with lots of redundant server calls, which can dramatically impact performance.Ĭlient-side data caching can solve that problem by sharing data among components. However, without proper planning, the autonomous nature of the components you assemble can have an adverse impact on performance.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |