Query-params-new, loading state, and nested route design question


So I was playing around @machty new query params examples, and I wonder what’s the best practice for mixing nested route, loading state and query params all together.

Here is basically what I needed - basic search query example on ember guide , nothing fancy here beside the loading state

Everything works great on the example above, but then I have this idea of preserving the “filter” UI while loading the data from the server - please see an example here

The example turned out fine by utilizing nested route, but I felt a bit hacky to set query param field on model hook. I have to do it this way mainly just for browser “refresh” - more like you want to bookmark the url and want to revisit it later.

I wonder if this is the way to go or I got the whole thing wrong. Thanks!