From 40bf16857ff32deafcedddf86e515c33b33168fe Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Tue, 5 Apr 2022 21:22:36 +0300 Subject: [PATCH] doc the option --- modules/reitit-frontend/src/reitit/frontend.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/reitit-frontend/src/reitit/frontend.cljs b/modules/reitit-frontend/src/reitit/frontend.cljs index d50e9614..d1e9c50a 100644 --- a/modules/reitit-frontend/src/reitit/frontend.cljs +++ b/modules/reitit-frontend/src/reitit/frontend.cljs @@ -22,7 +22,9 @@ (defn match-by-path "Given routing tree and current path, return match with possibly - coerced parameters. Return nil if no match found." + coerced parameters. Return nil if no match found. + + :on-coercion-error - a sideeffecting fn of `match exception -> nil`" ([router path] (match-by-path router path nil)) ([router path {:keys [on-coercion-error]}] (let [uri (.parse Uri path)