Hi Retool team and community,
I’m running into an issue with the Filter component in my Retool app. Even though I have set my data query to “Manual”, the table’s data query still fires automatically whenever I interact with the filter component. In other words, I want to control exactly when the query runs (for example, only when I click a “Search” button), but Retool keeps executing it as soon as the filter values change.
Here’s what I’ve tried so far:
- Query settings:
- My main data query (e.g.
getUsers
) is set to “Manual”. - I’ve disabled “Run on page load” and “Run when inputs change”.
- Filter component setup:
- Bound the filter inputs (e.g. text fields, dropdowns) to control the query’s input variables.
- Wrapped the
getUsers
query in a JavaScript “Search” button handler:
js
CopiarEditar
getUsers.trigger();
- Expected behavior:
- Retool should wait for me to click the “Search” button before calling
getUsers
. - Changing filter values alone should not trigger the query.
- Actual behavior:
- As soon as I type into a filter or select an option, Retool automatically executes
getUsers
and refreshes the table.
Has anyone experienced the same? Is there a workaround to prevent the Filter component from auto-running the query when it’s set to manual? Any suggestions or best practices would be greatly appreciated!
—
Thank you in advance for your help!