Make the Event Handler list re-orderable, I saw the suggested solution in one of the posts before, but I see it a bit hard to maintain and debug, like having a tree of functions, but being able to re-order it from one place will be much more clear and flexible.
Hi @CoderNadir, re-ordering the event handlers on a component will not change the run behavior because they're all triggered simultaneously. If we need to wait for some of them to finish running before triggering others, we should use a script and run them using await
.
For reusability, I recommend creating a JS function to trigger the events in the desired order. That way, we can trigger only this one JS function from the component(s). If we need to re-order, we would just change the order within the function.
2 Likes