I have multiple queries in my application and some of the queries trigger the same query on succes. I was wondering if there is a possibility to check if the query was triggered by a specific query to check if it has to run or not.
Example of my use-case:
- Query1 triggers Query3 on page load
- Query2 triggers Query3 on button click
- Query3 triggers Query4 on succes
- Query4 only needs to be triggered when Query2 was triggered by Query1
Thanks for the help!