0

I have a page that contains two lightning components. One is a calendar, the other is a list view.

On the calendar lightning component, a user will click, a hidden modal will be displayed so the user can create a record. Upon save success, I want just the calendar component to refresh. Not the entire page.

I've tried using $A.get('e.force:refreshView').fire(); on the callback in the calendar component. The result is both components refreshing. Same result when I create and fire a refresh event in the calendar component.

I can't seem to find much documentation in regards to refreshing single components on a page. Any ideas?

  • When do you want to refresh the component, when you click a button from parent component or on the same component? – gs650x Sep 10 at 14:11
  • 1
    Could you post your code here? – gs650x Sep 10 at 15:13
0

If you are using a custom lightning Component, Call the doinit() method after every action done, place a spinner within that time of getting records from the server.

  • I actually tried this the first time around, and am not getting the page to refresh at all. (Can confirm the doInit IS re-rerunning with log statements, but page is not refreshing). – ahardy55 Sep 10 at 13:57

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.