This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-11
Channels
- # ai (1)
- # announcements (59)
- # aws (3)
- # babashka (16)
- # beginners (36)
- # calva (29)
- # cider (7)
- # clj-kondo (33)
- # clojure (77)
- # clojure-austin (1)
- # clojure-australia (4)
- # clojure-europe (16)
- # clojure-france (7)
- # clojure-nl (2)
- # clojure-spec (1)
- # clojure-sweden (8)
- # clojure-uk (4)
- # clojurescript (17)
- # cloverage (4)
- # conjure (2)
- # cursive (3)
- # datomic (22)
- # emacs (16)
- # fulcro (10)
- # graphql (3)
- # helix (13)
- # jobs (1)
- # kaocha (1)
- # lsp (7)
- # malli (1)
- # nextjournal (1)
- # off-topic (32)
- # pedestal (8)
- # polylith (5)
- # reitit (4)
- # reveal (1)
- # shadow-cljs (67)
- # spacemacs (7)
- # tools-deps (6)
- # xtdb (4)
Hey! Has anybody got re-graph to run with shadow-cljs compiling to expo target? I do it like this, and compiling to browser target, it actually works. Compiling to expo target, nothing is happening, no errors raised, pure silence. I don't know if this belongs here or in shadow-cljs. I don't know how to debug this.
(defn init!
"Initialize re-graph."
[]
(js/console.log "init re-graph")
(re-graph/init {:http {:url (str "http://" QUERY_HOST)
:impl {:headers {"Authohrization" ACCOUNT
"Authorization-CSRF" CSRF}}
:supported-operations #{:query :mutate}}
:ws {:url (str "ws://" QUERY_HOST "/?_=" CSRF)
:impl {:headers {"Authorization" ACCOUNT
"Authorization-CSRF" CSRF}}}}))
(re-graph/query "{ some { query } }" {} (fn [res] (js/console.log "res" res)))
Wish I could help, I haven't used Expo however
Is anybody able to show an example of how to use Expound to format the spec errors that sometimes pop up while using Lacinia? I saw this recommended in the documentation but I haven't seen an example of how to do it yet. Or is it as simple as just adding a dependency on Expound? https://lacinia.readthedocs.io/en/latest/spec.html