defrecord does not emit IKVReduce protocol
Records are maps and in Clojure they support reduce-kv (IKVReduce protocol).
This is not true in ClojureScript:
Fails wit Error: No protocol method IKVReduce.-kv-reduce defined for type : [object Object]
0001-CLJS-1297-defrecord-does-not-emit-IKVReduce-protocol.patch applies cleanly, passes CI and Canary.
I've created a new patch based on Samuels and kept the attribution.
Hey Samuel, can you re-baseline your attached patch? (It no longer applies on master.)
Hi. What's the current status of this? Spec-tools fails to generate the JSON Schemas out of clojure.spec + records on cljs and there is a local fix proposed on that side: https://github.com/metosin/spec-tools/pull/130/files