figwheel-main

figwheel-main http://figwheel.org
danielcompton 2020-01-28T03:50:52.040900Z

Chrome is very aggressive about caching if you don’t provide explicit caching headers. You really need to make sure to include them

πŸ‘ 1
EmmanuelOga 2020-01-28T06:34:49.045400Z

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

EmmanuelOga 2020-01-28T06:36:14.047100Z

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

EmmanuelOga 2020-01-28T06:36:43.047600Z

figwheel itself seems to use jetty websockets directly, but doing that sounds a lot more involved

ingesol 2020-01-28T07:45:47.049500Z

@danielcompton Do you know to what extent figwheel-main actually handles this problem?

EmmanuelOga 2020-01-28T07:53:40.050800Z

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

porkostomus 2020-01-28T10:56:48.051800Z

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

athomasoriginal 2020-01-29T18:50:05.055Z

I could be wrong, but maybe https://github.com/juxt/edge has an example in there?

EmmanuelOga 2020-01-28T07:55:25.051700Z

(also it doesn't seem to provide a way to connect to a repl for neither clj nor cljs)

danielcompton 2020-01-28T16:07:09.054500Z

@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

πŸ‘ 2