Additionally, note that support for seqs on sorted maps ostensibly exists, but any such seq would convey cljs.core/BlackNode and/or cljs.core/RedNode entries. Adding handlers for these two types fixes the direct round-tripping of them as described above, but also enables round-tripping of seqs on sorted maps (which works in Clojure).
transit-clj
supports writing map entries (as 2-element vectors). Here is an example:But,
transit-cljs
doesn't support this. Here is an example, illustrating attempting to write acljs.core/BlackNode
:Additionally, note that support for seqs on sorted maps ostensibly exists, but any such seq would convey
cljs.core/BlackNode
and/orcljs.core/RedNode
entries. Adding handlers for these two types fixes the direct round-tripping of them as described above, but also enables round-tripping of seqs on sorted maps (which works in Clojure).