When the component is initially mounted local state is created for the search input field, and it starts off with the current search query. However this leads to two issues:
- Calling
query.setSearch() from another component won't update the input's value
- If the user searched for an action with children and then selected the action, the input isn't cleared so they can start searching the child actions. Due to the first issue this can't be fixed by calling
query.setSearch('').