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.

1 Answer 1

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.

1
  • Only component events can be fired multiple times. Oct 4, 2018 at 15:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .