We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0bcc56 commit 70c0b95Copy full SHA for 70c0b95
src/malli/core.cljc
@@ -2089,10 +2089,8 @@
2089
(let [child (delay (or (mr/-schema (-registry options) ref)
2090
(when-not allow-invalid-refs
2091
(-fail! ::invalid-ref {:type :ref, :ref ref}))))
2092
- rf (if lazy
2093
- (-memoize (fn [] (schema @child options)))
2094
- (let [s @child]
2095
- (-memoize (fn [] (schema s options)))))
+ _ (when-not lazy @child)
+ rf (-memoize (fn [] (schema @child options)))
2096
children (vec children)
2097
form (delay (-simple-form parent properties children identity options))
2098
cache (-create-cache options)
0 commit comments