Contents
How to refresh the browser page in a lightning component?
As an alternative (but not recommended), you can try the old Lightning way with refresh event: https://developer.salesforce.com/docs/atlas.en-us.212.0.lightning.meta/lightning/ref_force_refreshView.htm e.g. I encountered the next issue in one of the places: and there is no documentation entries for this event on API v43 and v44.
When does Lightning refresh the state of a component?
I am using lightning:navigation component in our project, and it doesnt refresh the state of component, when the url changes. To be clear, lightning framework just keeps the state of component/page and ignores url changes, even when we go through different records, page layouts etc.
When does Lightning navigation fire on re-navigation?
It fires on re-navigation to the component (even if the state parameters passed are identical) and it fires if the component internally uses lightning:navigation to change its own state. I found a relevant approach. In the component with lightning:isUrlAddressable simply add a change handler for the pageReference state.
Do you need an event to refreshing a component?
If you are refreshing the component from the context of a parent, you don’t need to use an event – you can expose a method to the parent and get it to call that. If you are refreshing the component from within the child itself, you could either use an event or re-run your init routine.
How to style a Visualforce page with lightningstylesheets?
Here is a standard Visualforce page without the lightningStylesheets attribute. The page is styled with the Classic UI. Here is the same Visualforce page with the lightningStylesheets attribute set to true. You can style most commonly used Visualforce components with the lightningStylesheets attribute.
Do you need to update custom code with lightningstylesheets?
The lightningStylesheets attribute doesn’t affect custom styling. Custom code must be updated to match the page’s SLDS styling. If set to false, the standardStylesheets attribute for overrides and suppresses lightningStylesheets in Lightning Experience, Salesforce Classic, and the mobile app.
What happens when I add a product to lightning?
Using lightning, I noticed that on Opportunity, if I add some products (OpportunityLineItems), the page will automatically refresh just after. It is very convenient, because it permits to see the updated Amount field.