function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Madhusudan Singh 15Madhusudan Singh 15 

Re initiate Lightning Components when Nested Components is used

Hi All,

I have created 3 Lightning Component Lets say

Component1
Component2
Component3

I am overriding New button of Lead Object and calling Component1.

From Component 1 I am navigating to Component 2 and from Component 2 to Component 3

My Problem is Once I navigate to Component 3 and abort my operation at Component 3 and next Time I click on New button it is directly Jumping to Component 3 with previous prefilled values. Ideally It should reinitate the process and Component 1 should load with blank fields.

Please help me in solving this issue.

Thanks in Advance.
Zuinglio Lopes Ribeiro JúniorZuinglio Lopes Ribeiro Júnior
Hello Madhusudan,

Can you provide the code or a simplified version of it? It will be better to understand your scenario and find a solution for you. In extreme cases, destroying the component (component.destroy()) after completing a specific task or canceling it, would do it but I don't think that's your case.
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_cb_dynamic_cmp_async.htm (http://​https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_cb_dynamic_cmp_async.htm)

Regards.