This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-13
Channels
- # announcements (2)
- # beginners (29)
- # boot (122)
- # cider (9)
- # clara (6)
- # cljs-dev (9)
- # clojure (27)
- # clojure-art (3)
- # clojure-dusseldorf (5)
- # clojure-europe (1)
- # clojure-india (2)
- # clojure-losangeles (1)
- # clojure-spec (29)
- # clojure-uk (2)
- # clojurescript (56)
- # cursive (11)
- # datomic (9)
- # fulcro (8)
- # liberator (1)
- # off-topic (2)
- # other-lisps (1)
- # quil (37)
- # re-frame (2)
- # reitit (1)
- # ring (4)
- # test-check (4)
- # tools-deps (3)
@lxsameer it might be more than you need, but have you checked out Pathom, in particular its Connect feature? It's pretty powerful and can enable mixing multiple different types of endpoints (gql, rest, eql, etc) into one graph query.
@thosmos you can import graphql endpoints in pathom. @lxsameer I have a work in progress http driver for nodejs Checkout the "GitHub example"
Hi, I’m using bare cljs.main
to launch a browser connected REPL like so:
clj -A:redacted -m cljs.main -ro '@repl.edn' -r
where repl.edn contains:
{:main rebl.REDACTED
:preloads [rebl.browser]
:output-to "resources/cognitect/rebl/REDACTED.js"
:output-dir "resources/cognitect/rebl/cljsout"
:asset-path "/resources/cognitect/rebl/cljsout"
:port 9001
:launch-browser false
:verbose true
:optimizations :none
:cache-analysis true
:source-map true}
The REPL connects, and when I evaluate (require 'rebl.redacted :reload)
the browser appears to not be finding the fresh code that is stuffed in
/var/folders/fh/s562tx1n41j4wyrsvlgydstm0000gn/T/out22959009146958254101213973269317956/myproject
Have I done something wrong?@ghadi hrm, I have run into cases where the temp-dir stuff doesn't seem to work - you can always specify a specific out dir
I guess I misunderstand: am I configuring two different things or two different phases of the same thing
So to fix my config so that the initial browser repl connection works && reloading works...
I promise to make a diagram of this and submit it to clojurescript-site once I figure it out
hrm, then yeah don't know - might be bug if you supply some of these unexpected options
@dnolen one last question: what is "the thing that lives in the iframe" responsible for doing?
we haven't moved away from it as after some optimization work a little while ago it turned out that CrossPage Channel actually works quite well
Update: using the split suggested above:
Ghadis-MacBook-Pro:rebl ghadi$ cat cljs/compile.edn
{:main rebl.REDACTED
:preloads [rebl.browser]
:output-to "resources/cognitect/rebl/reblcljs.js"
:output-dir "resources/cognitect/rebl/cljsout"
:asset-path "/resources/cognitect/rebl/cljsout"
:verbose true
:optimizations :none
:cache-analysis true
:source-map true}
Ghadis-MacBook-Pro:rebl ghadi$ cat cljs/repl.edn
{:port 9001
:launch-browser false
:verbose true}
Currently hitting:
InternalError: too much recursion
when invoking like so: