datascript-transit icon indicating copy to clipboard operation
datascript-transit copied to clipboard

How to extend datascript-transit serialization types?

Open theronic opened this issue 6 years ago • 1 comments

When I try to write a cljs-time object, I get "Error: Cannot write". E.g.

[#datascript/Datom [15 :message/thread 14 536870921 true] #datascript/Datom [15 :message/timestamp #object[Object 20190929T091725] 536870921 true] #datascript/Datom [15 :message/text "arstarst" 536870921 true]] image

How can I extend de-/serialization capabilities of datascript-transit to work with more types?

theronic avatar Sep 29 '19 09:09 theronic

Add transit handlers for cljs-time objects?

tonsky avatar Oct 01 '19 18:10 tonsky