0

I have component structure like this:

 component1
           component A
           component 2
Component 2
        component c

Based on button click on component c.I have to refresh component1.

I refered below post

Refresh parent component

everything is working fine, but below line shows error

 $A.get('e.force:refreshView').fire(); 

enter image description here

4

force:refreshView event is a salesforce event (catched by one.app) , not a custom event like in refresh parent component

If you need to use it , you have to declare that the component can fire it

<aura:registerEvent name="refreshViewEvent" type="force:refreshView"/>

That way, $A.get('e.force:refreshView') will return an event and not null

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.