# Is Hotwire right for achieving this?

**URL:** <https://discuss.hotwired.dev/t/is-hotwire-right-for-achieving-this/3191>\
**Category:** General\
**Created:** [August 29, 2021, 11:22am UTC](https://discuss.hotwired.dev/t/is-hotwire-right-for-achieving-this/3191 "2021-08-29T11:22:28Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![BKSpurgeon](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/bkspurgeon/32/1483_2.png) [@BKSpurgeon](https://discuss.hotwired.dev/u/BKSpurgeon)\
**Post date:** [September 2, 2021, 6:53am UTC](https://discuss.hotwired.dev/t/is-hotwire-right-for-achieving-this/3191/3 "2021-09-02T06:53:11Z")

</div>

> [@rctneil](#):
>
> URL with the new parameters is created, a request made and then I update the list of items using Handl

### Turbo streams option

I have done something similar (but using a POST request, not a GET - my URL stays the same.)

1. I have a search form. The search for makes POST requests (or in your case, GET requests).
2. The response is streamed back.
3. The streamed results simply replace what was originally there on the page.

You don’t have to deal with mustache templates anymore. The same html which renders your page the first time around can be used to render it when your users apply filters.

The only thing I am uncertain is how to change your URL - since you would probably want them to change. This PR looks promising, though I haven’t read it carefully: [Optionally update URLs on Frame navigation and stream responses by bfitch · Pull Request #167 · hotwired/turbo · GitHub](https://github.com/hotwired/turbo/pull/167)

### Turbo frames.

There is a thread which seems to do something similar here: [Turbo Frames with Browser Destination/URL Replacement - #10 by jonathanbruno](https://discuss.hotwired.dev/t/turbo-frames-with-browser-destination-url-replacement/1552/10)

### Using JS

I don’t know about using javascript to do the searching for you (as per the go rails video posted above) – another option would be to retain your html form and add a simple stimulus controller to automatically submit the form whenever there is a user input change.

---

_[View the full topic](https://discuss.hotwired.dev/t/is-hotwire-right-for-achieving-this/3191)._
