Probable the most lightweight Lightning component I ever did, but that doesn’t necessarily mean it isn’t useful. It actually can turn out utterly useful, preventing F5 or Cmd+R to refresh cached Lightning record pages. And yeah, from time to time you’re looking at stale data, and forcing Salesforce to retrieve new data shouldn’t be done using before-mentioned methods. It creates a terrible user experience, forcing the user to look again at the release image for some seconds in order for Salesforce to complete reloading.

Instead a simple component with a single like of declarative code, and a single line of controller code which can be used in your record pages. It refreshes the right way.

Simply put in on your page using the page builder.

refresh1

refresh2

Install it to your org right away?

Deploy to Salesforce

Or check the Git.

About the Author Jeroen Burgers

Salesforce Technical Architect | Platform-Addict & Fan | Working & Living in the Netherlands | 's-Hertogenbosch | Kim, Jens & Kris | 4x+ Rowing | No Soliciting - Please

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s