glenjamin / transit-immutable-js

Transit serialisation for Immutable.js
MIT License
250 stars 31 forks source link

cljs handlers #38

Open pedroteixeira opened 7 years ago

pedroteixeira commented 7 years ago

Hi, are there any handlers example to make the tagged values here work when reading from transit-cljs or transit-clj?

I expected that it would work without any extra configurations.. isn't usefull to have an example of reading immutable-js data to cljs/clj data?

thanks for any help!

glenjamin commented 7 years ago

Hrm, I chose different tags for the immutable types so as not to conflict, but it should be possible to match them up with what clojure would produce.

I don't have any time to look into this, but if you get something working then please do post it back here.

If you have a look at the source of this module, and compare the serialised outputs, you'll need to adjust the tags to match - or perhaps configure the default list/map types in transit to use immutable's