With the help of Muuntaja, I’ve written my own Transit encoders for my back-end that can handle Instants and soon UUIDs. What I’m not sure about is how to make the parallel decoders on the front-end, where I’m using re-frame-http-fx for my ajax requests. I lifted the following from @yogthos Luminus, but in that code-base as-transit isn’t actually called anywhere, and I’m not sure where I would use it. How should I setup my transit reading on the front-end so that data I receive over the wire correctly interprets my custom special types (Instant, UUID) into the matching Clojurescript things?
The as-transit function is meant to be used with cljs-ajax to set the opts that will hint to use transit for serialization/deserialization., e.g: (ajax/POST "/foo" (as-transit {:params {:foo :bar}})).