Monitor Temp State Changes

Hi there

Does anyone know if it is possible to monitor changes of a Temp State. So if a temp state value changes or is added, then I would like to kick off a query.

I am using temp state as a local copy of my database, and so I want to update the database when changes are made to the temp state version. Any thoughts would be much appreciated




You can set up a "Query JSON with SQL" query as a listener query that is set to "run when inputs change". Here is an example of what that looks like:

In this example I added an event handler that throws confetti on success, but you could trigger another query if that works for your use case!