Background
I have a Visualforce
page which loads a Lightning Aura Component
using LightningOut
.
When the Lightning component executes this line:
$A.get('e.force:refreshView').fire();
I get this error:
This page has an error. You might just need to refresh it. Error in $A.getCallback() [Cannot read property 'fire' of undefined] Callback failed: apex://CustomProcessController/ACTION$clearSessionCache Failing descriptor: {c:CustomProcess}
I guess that $A.get('e.force:refreshView').fire()
is not supported in LightningOut?
Questions
What alternatives do I have to get the page to refresh?
And how can the Lightning component detect that it's running inside LightningOut such that I can use the alternative method?