Skip to content

Commit a59b475

Browse files
committed
actually retrieve vol
1 parent 3d2090e commit a59b475

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/malli/core.cljc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1944,7 +1944,8 @@
19441944
(let [ref-validators *ref-validators*
19451945
id (-identify-ref-schema this)]
19461946
(if lazy
1947-
(let [vol (volatile! nil)]
1947+
(let [vol (or (ref-validators id)
1948+
(volatile! nil))]
19481949
(fn [x]
19491950
(if-let [f @vol]
19501951
(f x)

0 commit comments

Comments
 (0)