diff --git a/.changeset/witty-cherries-visit.md b/.changeset/witty-cherries-visit.md new file mode 100644 index 000000000..fa28c0369 --- /dev/null +++ b/.changeset/witty-cherries-visit.md @@ -0,0 +1,5 @@ +--- +'houdini-react': patch +--- + +fix bug with useRoute pulling route params diff --git a/packages/houdini/src/runtime/router/match.ts b/packages/houdini/src/runtime/router/match.ts index d084917c9..7445642d8 100644 --- a/packages/houdini/src/runtime/router/match.ts +++ b/packages/houdini/src/runtime/router/match.ts @@ -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