Goal: I am trying to update a temp state variable and then do nothing else. The problem is that whenever this temp state variable is updated, every query that uses this variable runs. All of these queries in question are set to run manually. They are a mixture of API calls and DB updates. They should not run until they are manually fired, and yet they do whenever this variable changes.
Steps:
- Create a variable
- Create a resource (API or db) that uses this variable, set it to manual execution
- Manually change the variable, see these resources run.
Expected:
- Create a variable
- Create a resource (API or db) that uses this variable, set it to manual execution
- Manually change the variable (or programmatically set it)
- No resources run
I cannot find documentation about this reactive behavior, if it exists please send to me! At this point I am simply confused. Do I need to rearchitect the app assuming this reactive yet undocumented behavior?
I see this 'Updates' section in the state tab, but I have no idea what it means. Does every single event here run if this state variable is updated?