Infer query inputs / variables from URLSearchParams #1210
Labels
Enhancement
A new feature or improvement to Houdini's public API
Router
Issues related to the React framework
SvelteKit
Issues related to the SvelteKit integration
Describe the feature
in #789 @jycouet suggested to expand the route parameter inferring to also use url.searchParams, i think the comment got lost or wasn't considered at that moment. Imo this would improve filtering / searching in many applications and is probably worth exploring more, since we know all parameters a query needs ahead of time we should be able to easily do this.
I love Houdini and just coming back to using it on my side projects. The only thing i don't really enjoy is the way variables for queries work in general.
+page.gql
files are awesome and really intuitive! But once you need some kind of variable that isn't included as route parameter you have to create a+page.ts
to export this weird _Variables function or move to _houdini_load to have both in the same file.Criticality
cool improvement, my projects will benefit from it
The text was updated successfully, but these errors were encountered: