register-pure: added code to enable spec checking of the fn args

This commit is contained in:
Stuart Mitchell 2016-06-14 13:23:38 +12:00
parent 48a1bda438
commit 1b698b3d8f
1 changed files with 6 additions and 4 deletions

View File

@ -35,9 +35,6 @@
(coll? data) (map deref data)
:else @data))
(s/fdef register-pure
:args ::args)
(defn register-pure
"This fn allows the user to write a 'pure' subscription
i.e. that is a subscription that operates on the values within app-db
@ -99,4 +96,9 @@
(subs/register ;; the simple case with no subs
sub-name
(fn [db q-vec d-vec]
(ratom/make-reaction (fn [] (f @db q-vec d-vec))))))))
(ratom/make-reaction (fn [] (f @db q-vec d-vec))))))))
#_(s/fdef register-pure
:args ::args)
#_(s/instrument #'register-pure)