Skip to content

Commit

Permalink
'fulcro-reitit: Add docstring for will-enter helper'
Browse files Browse the repository at this point in the history
  • Loading branch information
dvingo committed Feb 21, 2022
1 parent 6097998 commit 31c18a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/dv/fulcro_reitit.cljs
Expand Up @@ -554,6 +554,8 @@

;{:malli/schema [:=> [:cat ]]}
(defn will-enter
"Takes a will-enter function as expected for use in fulcro routing, but replaces any parameters in the second argument
with their coerced values from the current route match if those parameters are present."
[f]
(fn will-enter [app args]
(let [current-route (current-route-from-url app)
Expand Down

0 comments on commit 31c18a1

Please sign in to comment.