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?

3
  • When do you want to refresh the component, when you click a button from parent component or on the same component? Commented Sep 10, 2019 at 14:11
  • 1
    Could you post your code here? Commented Sep 10, 2019 at 15:13
  • The below link may help :: How to refresh the specific Lightning component not the lightning page Commented Dec 2, 2019 at 14:03

1 Answer 1

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.

1
  • 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). Commented Sep 10, 2019 at 13:57

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.