From 88efc700aefa2315382f7212133792aab4777c0c Mon Sep 17 00:00:00 2001 From: UpperCod Date: Wed, 5 Jan 2022 11:23:06 -0300 Subject: [PATCH] fix param --- src/use-router/use-router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/use-router/use-router.js b/src/use-router/use-router.js index c9e8cba..eadc78a 100644 --- a/src/use-router/use-router.js +++ b/src/use-router/use-router.js @@ -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) {