I have two update queries - one JS and one SQL, whose titles both start with the word "Update". (Let's call them "UpdateJS" and "UpdateSQL", respectively.)
I was intending to call UpdateSQL in my JS query, supposedly typing
UpdateSQL.trigger() but didn't notice that autocomplete suggested UpdateJS. So instead of calling the SQL query, I accidentally called
UpdateJS.trigger() inside UpdateJS, causing an infinite recursion and rendering the app unresponsive (couldn't even refresh the page).
It took several tests for me to realize that I had called the function on itself - just thinking that maybe there be some sort of validation for query triggers inside queries, ensuring that the query isn't invoking itself.