mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-24 15:58:36 +00:00
commit
b566c08f40
@ -114,9 +114,9 @@
|
|||||||
^{:re-frame-factory-name "path"}
|
^{:re-frame-factory-name "path"}
|
||||||
(fn path
|
(fn path
|
||||||
[& args]
|
[& args]
|
||||||
(let [path (flatten args)
|
(let [path (flatten args)]
|
||||||
_ (if (empty? path)
|
(when (empty? path)
|
||||||
(error "re-frame: \"path\" middleware given no params."))]
|
(error "re-frame: \"path\" middleware given no params."))
|
||||||
(fn path-middleware
|
(fn path-middleware
|
||||||
[handler]
|
[handler]
|
||||||
(fn path-handler
|
(fn path-handler
|
||||||
|
Loading…
x
Reference in New Issue
Block a user