Skip to content

Commit

Permalink
fix param
Browse files Browse the repository at this point in the history
  • Loading branch information
UpperCod committed Jan 5, 2022
1 parent c0ba3c3 commit 88efc70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/use-router/use-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function useRouter(routes) {
* @template T
* allows you to listen to only one route
* @param {string} path
* @param {import("./src/matches").RouterCallback} callback
* @param {import("./src/matches").RouterCallback} [callback]
* @returns {[T, StringPath, ParamsPath, SearchPath]}
*/
export function useRoute(path, callback = (param) => param) {
Expand Down

0 comments on commit 88efc70

Please sign in to comment.