Skip to content

Commit

Permalink
fix matchVariables
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Mar 29, 2024
1 parent 71ec485 commit 9630389
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/witty-cherries-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini-react': patch
---

fix bug with useRoute pulling route params
4 changes: 3 additions & 1 deletion packages/houdini/src/runtime/router/match.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ export function find_match<_ComponentType>(
}

// we might have to marshal the variables
let variables: GraphQLVariables = {}
let variables: GraphQLVariables = {
...matchVariables,
}
// each of the matched documents might tell us how to handle a subset of the
// matchVariables. look at every document's input specification and marshal
// any values that are in matchVariables
Expand Down

0 comments on commit 9630389

Please sign in to comment.