diff --git a/modules/reitit-frontend/src/reitit/frontend.cljs b/modules/reitit-frontend/src/reitit/frontend.cljs index 692143b6..7e714edc 100644 --- a/modules/reitit-frontend/src/reitit/frontend.cljs +++ b/modules/reitit-frontend/src/reitit/frontend.cljs @@ -1,5 +1,4 @@ (ns reitit.frontend - "" (:require [clojure.set :as set] [reitit.coercion :as coercion] [reitit.coercion :as rc] @@ -31,6 +30,9 @@ (assoc match :parameters parameters))))) (defn match-by-name + "Given a router, route name and optionally path-parameters, + will return a Match (exact match), PartialMatch (missing path-parameters) + or `nil` (no match)." ([router name] (match-by-name router name {})) ([router name path-params] diff --git a/modules/reitit-frontend/src/reitit/frontend/history.cljs b/modules/reitit-frontend/src/reitit/frontend/history.cljs index 2bad0bce..35d8a091 100644 --- a/modules/reitit-frontend/src/reitit/frontend/history.cljs +++ b/modules/reitit-frontend/src/reitit/frontend/history.cljs @@ -1,9 +1,7 @@ (ns reitit.frontend.history - "" (:require [reitit.core :as reitit] [reitit.core :as r] [reitit.frontend :as rf] - [reitit.impl :as impl] [goog.events :as gevents]) (:import goog.Uri))