I'm using a url button to redirect to a lightning component which has been implemented using lightning:isUrlAddressable
.
The url button to redirect on lead is as : /lightning/cmp/c__componentName?c__leadId={!Lead.Id}
But the leadId when I try to obtain in Init
is cached and hence getting the previous leadId instead of the current LeadId
.
How to get to get the current leadid instead of getting cached value??