This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-07
Channels
- # announcements (1)
- # babashka (34)
- # bangalore-clj (2)
- # biff (2)
- # cider (63)
- # clj-commons (1)
- # clj-kondo (4)
- # cljdoc (44)
- # clojure (65)
- # clojure-europe (45)
- # clojure-nl (4)
- # clojure-norway (85)
- # clojure-uk (5)
- # clojurescript (5)
- # cursive (11)
- # datomic (8)
- # graalvm (11)
- # honeysql (7)
- # hoplon (9)
- # hyperfiddle (3)
- # introduce-yourself (1)
- # matrix (2)
- # missionary (17)
- # overtone (2)
- # polylith (6)
- # portal (16)
- # re-frame (24)
- # releases (2)
- # sci (45)
- # xtdb (9)
how to you view the state of an reagent app using portal? seems portal.web
does not have an inspect function
Ohh, I may have forgotten to add one. (portal.web/open {:value 123})
should work as well. Will add it soon 👌
strange, :value
doesn't seem to do anything.
I'm also only able to spawn one window. Should it be possible to spawn multiple?
Currently, portal.web only allows for a single instance. I think it was a bit easier to get it going, but I could see removing this limitation. This would involve getting sessions working for it.
too bad about the one session thing, ideally I'd like one window for the application state and one for random taps.
quite new to clojurescript, like TIL you can't do requiring-resolve. do you see any major problems with adding support for multiple sessions, or more of a time/need issue?
I think the main issue will be around the parent browser process and page reloads. I think it was easier to re-establish the connection with a single instance, but tracking multiple should also work. Just a bit more involved.
I see, thanks! the nrepl-wrapper + a state window gets me 90% there. this is not a major issue.
btw, since you're around @djblue. I have a debug utility called maptap
that renders geojson layers in leaflet. it would be cool to have this as a viewer in portal. is it possible to add custom viewers? if not, would you be interested in a PR for this?
Have you taken a look through https://cljdoc.org/d/djblue/portal/0.49.1/doc/guides/custom-viewer?
I hadn't seen that. thanks!
Let me know how it goes. I would like to improve building things for portal outside of portal 👌
https://github.com/mentat-collective/emmy-viewers/tree/main/src/emmy/portal is how emmy-viewers is doing it
so far so good 😄
btw, you should probably steal include https://github.com/mentat-collective/emmy-viewers/blob/main/src/emmy/portal/css.cljs#L4! very handy and not obvious (at least to me)