This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-28
Channels
- # babashka (28)
- # beginners (252)
- # bristol-clojurians (2)
- # calva (28)
- # cider (11)
- # clj-kondo (15)
- # cljs-dev (7)
- # clojure (378)
- # clojure-europe (4)
- # clojure-italy (4)
- # clojure-nl (3)
- # clojure-norway (4)
- # clojure-uk (32)
- # clojurescript (128)
- # cursive (39)
- # data-science (18)
- # docker (37)
- # figwheel-main (10)
- # fulcro (45)
- # ghostwheel (7)
- # graalvm (2)
- # hugsql (1)
- # jobs (2)
- # joker (5)
- # kaocha (5)
- # luminus (12)
- # off-topic (37)
- # onyx (4)
- # pathom (22)
- # pedestal (70)
- # re-frame (7)
- # reagent (30)
- # ring (4)
- # shadow-cljs (12)
- # spacemacs (1)
- # sql (26)
- # tools-deps (7)
- # vrac (2)
- # vscode (7)
- # xtdb (27)
Chrome is very aggressive about caching if you don’t provide explicit caching headers. You really need to make sure to include them
I wonder if anybody has an example of a setup running https://github.com/ptaoussanis/sente and figwheel.main in the same project? I browsed around I found oz (and vizard) but both of them seem to be using the previous version of figwheel
not sure if there's another way to establish a bidirectional channel as convenient as sente, it looks really nice with ajax fallback and everything, so it looks like a good choice
figwheel itself seems to use jetty websockets directly, but doing that sounds a lot more involved
@danielcompton Do you know to what extent figwheel-main actually handles this problem?
Current status: • Found a year old article with someone asking this very same question: https://www.reddit.com/r/Clojure/comments/al1klk/fullstack_clojure_how_to_get_a_browser_repl_and_a/ • Also going through the rabbit hole of "full stack clojure" articles and projects. • So far found this example: https://github.com/oakes/full-stack-clj-example which uses figwheel.main but not sente
FWIW, Zach Oakes also has a good Sente starter as part of LightMod (https://github.com/oakes/Lightmod) or in the cloud at http://nightcoders.net
I could be wrong, but maybe https://github.com/juxt/edge has an example in there?
(also it doesn't seem to provide a way to connect to a repl for neither clj nor cljs)
@ingesol depends on whether Figwheel Main is serving your static assets. I think it should if it does, and you have to add caching headers if you are serving static assets yourself