This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-26
Channels
- # adventofcode (2)
- # announcements (7)
- # babashka (20)
- # beginners (77)
- # brompton (6)
- # calva (4)
- # clj-kondo (28)
- # clj-together (1)
- # cljdoc (2)
- # cljfx (10)
- # cljsrn (1)
- # clojure (77)
- # clojure-europe (33)
- # clojure-gamedev (12)
- # clojure-uk (11)
- # clojurescript (95)
- # clojureverse-ops (4)
- # core-async (4)
- # core-logic (1)
- # cryogen (2)
- # cursive (14)
- # data-science (3)
- # datomic (47)
- # duct (1)
- # emacs (7)
- # fulcro (51)
- # gratitude (8)
- # helix (14)
- # hoplon (4)
- # improve-getting-started (60)
- # jobs (1)
- # jobs-discuss (4)
- # joker (11)
- # lsp (99)
- # meander (62)
- # membrane (5)
- # news-and-articles (3)
- # off-topic (64)
- # pathom (3)
- # polylith (11)
- # practicalli (7)
- # react (1)
- # reagent (8)
- # reveal (15)
- # shadow-cljs (78)
- # specter (7)
- # sql (16)
- # tools-build (1)
- # tools-deps (29)
- # workspaces (1)
- # xtdb (17)
Does cljfx have documentation available on what components are built in, and what types go where?
✅ . Might be able to get better docs for cljfx soon. Will see if I can build it in cljfx 🙂
Hi, I'm having issues understanding how state is supposed to flow. I've create a minimal example that shows my issue. In short, I want to create a component that has a button and a text field beside it. On click of the button, a DirectoryChooser pops up and when a directory is selected, the path is filled into the text field.
As is, my global state is correct, but the UI doesn't reflect the state. The text field remains blank.
I believe my issue is in the directory-input
component as the :text
value isn't ready until after the :on-action
is triggered. I can make this work by reaching out to *state
in directory-input
, but I would really like to use this pure approach.
Here's a gist if it makes it easier to read: https://gist.github.com/jvtrigueros/721da14b0aa6fb693ba9c1a8ed2359de
Any pointers would be greatly appreciated 🙇
Thank you! I started with one example and then took pieces from another example, I changed the arg to wrap-map-desc
(fx/wrap-map-desc
(fn [state] (root-view state)))
Then everything works now! Thank you so much!Oh that actually might work better, thanks for the tip!
With that change, now I just need to eval the root-view