Using Lightning Out I have a VF page display a Lightning Component.
The VF page passes values from URL parameters to the component attributes.
If specific parameters are passed the component automatically performs an action.
When that action completes the component is updated with data received from a push topic notification.
Problem If the user refreshes the browser the action is performed again and this is BAD
Question: How can I indicate that the action has already been performed so on browser refresh it is not performed again?
- I thought about adding a URL parameter so when the refresh happen the VF page sees it and passes it back to the component. But I do not see a way to add a URL parameter to the containing VF page.
Is there a way to do this? Is there another way?
If I could add a URL parameter like completed=true then when the user refreshed the VF page it would be included and I could prevent the action.
No real code needed here as I believe the concept as I laid it out is pretty straightforward...