Replies: 1 comment 1 reply
-
What do you mean by incorrect handler, getting triggered? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I've been implementing wave apps for a while. It is excellent and looks nice. But when I have multiple components and handlers associated with them, and when the user does a particular interaction, sometimes the incorrect handler gets triggered.
What I understood is this is because wave executes q.args and q.events in the order it has saved. For example, if there are two q.args and when the WAVE wants to choose what needs to handle first, it is best to select the most recent argument.
This can be solved by maintaining arguments in a stack, associating timestamps with arguments or adding weights according to the user's latest interaction. More ideas are welcome.
Beta Was this translation helpful? Give feedback.
All reactions