omcljs / om

ClojureScript interface to Facebook's React
6.65k stars 364 forks source link

Arity exception when calling om.next/reader and om.next/writer with zero arguments in Clojure #910

Open borkdude opened 5 years ago

borkdude commented 5 years ago

Repro using Clojure on the JVM:

$ lein repl
...
user=> (require '[om.next :as n])
nil
user=> (n/reader)

ArityException Wrong number of args (0) passed to: transit/reader  clojure.lang.AFn.throwArity (AFn.java:429)

user=> (n/writer)

ArityException Wrong number of args (0) passed to: transit/writer  clojure.lang.AFn.throwArity (AFn.java:429)

Errors detected with clj-kondo