Questions tagged [storable-action]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8 votes
3 answers
13k views

Storable Action - System.LimitException: Too many DML statements: 1

@AuraEnabled(cacheable=true) public static String deleteContacts(List<String> contactIds) { List<Contact> returnList = new List<Contact> (); String query = ' SELECT Id,Name, ...
keepler's user avatar
  • 384
7 votes
1 answer
526 views

Can we programatically verify the Lightning Component setStorable() cached actions?

I'm building a Lightning Component that relies on heavy pulling of data from server side. but also has Filters. I was thinking to make use of setStorable() action for pulling data from Apex. Now, ...
VarunC's user avatar
  • 5,950
0 votes
1 answer
1k views

aura storable actions not working as expected - client cache

I am trying to use storable actions. I am not getting expected results. As per the video from salesforce ,https://www.youtube.com/watch?v=G931jWBnxHU&t=758s, if a method is marked as storable, the ...
Raja Vivekanandhan's user avatar
5 votes
1 answer
366 views

Storable actions and promises

From the salesforce promise documentation: Don’t Use Storable Actions in Promises The framework stores the response for storable actions in client-side cache. This stored response can ...
jmdohn's user avatar
  • 1,064
6 votes
1 answer
580 views

Lightning: Caching Actions Across Components

I have been using Storable Actions to help reduce the amount of identical calls that are going back to the server. Everything is working great but I have a question surrounding how this works across ...
techbusinessman's user avatar