This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-22
Channels
- # announcements (8)
- # architecture (1)
- # beginners (49)
- # calva (7)
- # cljdoc (7)
- # cljs-dev (4)
- # clojure (44)
- # clojure-italy (1)
- # clojure-spec (12)
- # clojurescript (88)
- # community-development (2)
- # cursive (8)
- # datomic (16)
- # fulcro (15)
- # immutant (3)
- # joker (10)
- # keechma (4)
- # lambdaisland (1)
- # luminus (7)
- # pathom (1)
- # qa (2)
- # re-frame (11)
- # reitit (8)
- # remote-jobs (1)
- # rewrite-clj (10)
- # shadow-cljs (1)
- # slack-help (2)
- # sql (1)
- # tools-deps (2)
- # vim (4)
- # xtdb (3)
Hi guys
howto save reitit match record into app-db of re-frame: i have converted the record to hash map then try to save it but i have objects in the hash
i got this "Error: No reader function for tag object"
i guess i need some serialization/deserialization of objects, am i right?
also why they are saved as objects, why not as pure clojure datastructure ?
guys i have added add to local store interceptor for refreshing purpose https://github.com/aibrahim/reitit/tree/master/examples/frontend-re-frame/src/cljs/frontend_re_frame but i need to save the reitit route match object right in the localstore when i refresh i got this: Error: No reader function for tag object. that's how the db when try to save {:current-route #reitit.core.Match{:template "/sub-page1", :data {:coercion #object[reitit.coercion.spec.t_reitit$coercion$spec28334], :name :frontend-re-frame.core/sub-page1, :view #object[frontend_re_frame$core$sub_page1], :link-text "Sub page 1", :controllers [{:start #object[G__45204], :stop #object[G__45207]}]}, :result nil, :path-params {}, :path "/sub-page1", :query-params {}, :parameters {:path {}, :query {}}, :controllers [{:start #object[G__45204], :stop #object[G__45207], :reitit.frontend.controllers/identity nil}]}, :current-input-value "hello world"} the problem is #object, what is the best way to serialize and deserialize them before save and when load ?
@ikitommi can you help in this?