Skip to content

Commit

Permalink
fix: search params were missing from $params helper
Browse files Browse the repository at this point in the history
closes #524
  • Loading branch information
jakobrosenberg committed Aug 19, 2023
1 parent 60cc525 commit a64844f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/runtime/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ const inheritedParams = (node, route) => {
*/
export const params = {
subscribe: (run, invalidate) => {
return derived(contexts.fragment.params, params => params).subscribe(
run,
invalidate,
)
return derived(
[contexts.router.params, contexts.fragment.params],
([routerParams, fragmentParams]) => ({ ...routerParams, ...fragmentParams }),
).subscribe(run, invalidate)
},
}

Expand Down

0 comments on commit a64844f

Please sign in to comment.