This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-27
Channels
- # announcements (1)
- # beginners (71)
- # braveandtrue (4)
- # cider (1)
- # cljs-dev (4)
- # cljsrn (8)
- # clojure (111)
- # clojure-italy (5)
- # clojure-spec (22)
- # clojure-uk (8)
- # clojurescript (80)
- # cryogen (14)
- # cursive (7)
- # data-science (1)
- # datomic (25)
- # dirac (1)
- # figwheel-main (4)
- # fulcro (13)
- # incanter (1)
- # off-topic (6)
- # other-languages (3)
- # pathom (11)
- # portkey (5)
- # re-frame (13)
- # reagent (3)
- # reitit (24)
- # ring-swagger (7)
- # shadow-cljs (63)
- # spacemacs (3)
- # specter (4)
- # tools-deps (9)
I’m see strange behavior with tempid mapping, on the server i’m returning this tempid remapping
#:fulcro.client.primitives{:tempids {#fulcro/tempid["22e6d9c7-e6eb-4c0f-beb9-d074f13c9037"] 17592186045433}}
which looks correct, but in the client in fulcro inspect i see this
it’s as if the pathom parser looses the tempid encoding of the tempid
@wilkerlucio do i have to do anything special with pathom to make it understand fulcro tempids?
@currentoor are you using transit?
fulcro’s transit built into the websockects components
@currentoor usually you have to request that on the query, to avoid that there is a feature in pathom to always request it
Ah yeah that seems like the issue
hi i'd asked about this before, but got pulled into some other stuff and didn't have a chance to play around with it much. when calling a JS API that's not the server (e.g. 3rd party auth), I was looking at doing something like
(defmutation call-auth0-cognito-whatever
...
; set stuff like :ui/loading, etc in state
(-> (invoke-api ..)
(.then .. #(success-mutation))
(.catch .. #(error-mutation))
I recall someone mentioning pathom as a more sophisticated way to do this as well. But just want to make sure i'm on the right track