Fork me on GitHub
#clojurescript
<
2018-10-12
>
Mario C.04:10:18

How difficult would it be to convert a clabango project to reagent?

Nolan19:10:00

not sure if this is the right place for this, but didnt see a separate transit channel. suddenly started getting "Cannot write " errors with a custom writer in transit-cljs, on records that were previously serializing just fine. has anyone else run into something like this? have tried cleaning the project, etc.. it’s failing before my custom writer fn is called. JSON.stringify does the right thing, as does directly t/writeing the result of the custom writer fn. is there some sort of tag cache that might have gotten tweaked? its a tough one to debug.

Nolan19:10:33

currently (and when this was working) the code looks like this

(def point-write-handler
  {Point (t/write-handler
          (constantly point-tag)
          pt->rep)})