Your app should degrade gracefully when a server-side action times out or the
response is dropped. Use the Salesforce Lightning Inspector to
simulate a dropped action response and see how the user experience is affected.
-
Drag the action whose response you want to modify to the PENDING OVERRIDES
section.
-
Select Drop the Action in the drop-down
list.
-
To trigger execution of the action, refresh the page.
- The modified action response moves from the PENDING OVERRIDES section to
the PROCESSED OVERRIDES section.
- The action response displays in the COMPLETED section in the left panel
with a State equals INCOMPLETE.
-
Note the UI change, if any, related to your change. The UI should handle the
dropped action by alerting the user or allowing them to continue using the
app.
To degrade gracefully, make sure that your action response callback handles an
incomplete response (response.getState() ===
"INCOMPLETE").