I am trying to fire the same lightning event from one component more than once. Is it possible to save the event in a variable and use it to fire?
I saw this question. It did not help.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
No. Attempting to fire an event more than once results in the following error:
Assertion Failed!: Event.fire(): Unable to fire event. Event has already been fired. : false
You can get an event and hold on to it indefinitely, but you cannot use it again afterwards. You must get a fresh copy each time.