Skip to content

[general] Hard Refresh Flexipages for updates #764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ssk42 opened this issue Mar 12, 2025 · 2 comments
Open

[general] Hard Refresh Flexipages for updates #764

ssk42 opened this issue Mar 12, 2025 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ssk42
Copy link

ssk42 commented Mar 12, 2025

Is your feature request related to a problem? Please describe.
I'm always frustrated when I make a change to a Lightning Page and then it doesn't show up.

Describe the solution you'd like
I would like a quick and easy button to do a "hard refresh" to be able to see changes I made.

Describe alternatives you've considered
Involves changing the layout from cozy<->compact, or re-changing the Lightning Page which can be slow and arduous.

Additional context
From one of the SWEs on the flexipage team: "the page template is cached in your browser. the TTL here is measured in hours (subject to change). specifically within indexedDB in the actions database. notably, clearing your browser cache does not clear indexedDB. your flexipage entry in indexedDB will be invalidated under certain conditions (an example, if you save a page in Lightning App Builder). you can also clear the actions indexedDB by clicking the storage tracker in the header if you have Debug Mode enabled for your user. a third way is logging out and back in. a fourth way is indexedDB.deleteDatabase("actions") in chrome console".

Given until EOW, I'd love to try and take a stab at adding a button for that fourth way.

@ssk42 ssk42 added the enhancement New feature or request label Mar 12, 2025
@tprouvot tprouvot changed the title From 3/12/2025 LinkedIn Post: Hard Refresh Flexipages for updates [general] Hard Refresh Flexipages for updates Mar 12, 2025
@tprouvot
Copy link
Owner

Hi @ssk42,
Thanks for creating this feature request.
If my understanding is correct, you would like to implement the fourth suggestion which would be running indexedDB.deleteDatabase("actions") ?

Since this action is not related to the extension and could have side effects, I'm not very confident with this solution.
Have you checked if the $A.get('e.force:refreshView').fire() method could do the job ?
I'm about to merge this PR which could allows you to re-use some code:

https://github.com/tprouvot/Salesforce-Inspector-reloaded/blob/pr/toly11/409/addon/inject.js

This action could be triggered from chrome shortcuts or via a new button in the popup that would be hidden by default

@ssk42
Copy link
Author

ssk42 commented Mar 12, 2025

Yes, I am confident that A.get('e.force:refreshView').fire() does not cover all scenarios for the hard refresh. I do love this being able to be driven via the Chrome Shortcuts or via a new hidden button.

Also, just let me say how big of a fan I am of you and your code and all of the hard work you've put into this amazing tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants