This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-03
Channels
- # announcements (21)
- # aws (6)
- # babashka (28)
- # beginners (39)
- # biff (1)
- # calva (23)
- # cider (5)
- # clj-kondo (108)
- # clojure (11)
- # clojure-europe (17)
- # clojure-nl (2)
- # clojure-nlp (10)
- # clojure-uk (8)
- # clojurescript (29)
- # community-development (4)
- # conjure (20)
- # css (3)
- # datalevin (9)
- # datomic (3)
- # events (2)
- # figwheel-main (11)
- # fulcro (36)
- # honeysql (7)
- # humbleui (5)
- # interceptors (4)
- # introduce-yourself (3)
- # jobs (1)
- # lsp (51)
- # malli (1)
- # meander (71)
- # minecraft (8)
- # other-languages (18)
- # pathom (15)
- # polylith (25)
- # portal (10)
- # re-frame (5)
- # reitit (15)
- # releases (1)
- # remote-jobs (1)
- # shadow-cljs (11)
- # tools-deps (27)
I wonder if there's a way of solving this: when I reload the browser page (using shadow-cljs), portal loses theme customizations and the taps added with add-tap
. What's the recommended way of dealing with hot reloading in shadow-cljs?
I'm assuming this is via portal.web, if so, it would be hard to preserve the tap-list since those values live in memory on the page that's being refreshed. If you want to preserve those values across page refreshes, you can send them to a remote instance of portal 👌
Pointing to a remote instance retains the tapped values, but still loses the taps, unfortunately. I'm sure there's a way to have shadow re-init them by default; I just haven't spent enough time trying to figure it out.
Ohh, for that you want a https://shadow-cljs.github.io/docs/UsersGuide.html#_preloads
Thanks!
This is what I have setup for portal itself https://github.com/djblue/portal/blob/master/dev/portal/setup.cljs
https://github.com/djblue/portal/blob/master/doc/guides/shadow-cljs.md is the guide 💯
What are the relative tradeoffs of using a standalone portal instead of a cljs one? Do you lose some possibilities of interaction?
With portal.web, you get access to runtime js objects / commands. So if that isn't something you are leveraging, it might be better to use a remote instance