0

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.

2

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.

  • Only component events can be fired multiple times. – danigonlinea Oct 4 '18 at 15:39

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.