This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-08
Channels
- # announcements (6)
- # atom-editor (1)
- # babashka (21)
- # beginners (70)
- # clerk (4)
- # clj-kondo (71)
- # clj-yaml (1)
- # clojure (54)
- # clojure-art (1)
- # clojure-denmark (1)
- # clojure-dev (1)
- # clojure-doc (1)
- # clojure-europe (31)
- # clojure-nl (1)
- # clojure-norway (41)
- # clojure-uk (15)
- # clojurescript (36)
- # conjure (1)
- # cursive (2)
- # datomic (14)
- # duct (10)
- # emacs (12)
- # etaoin (176)
- # gratitude (25)
- # hyperfiddle (17)
- # jobs (1)
- # juxt (5)
- # london-clojurians (1)
- # malli (3)
- # nbb (21)
- # off-topic (29)
- # reitit (12)
- # releases (2)
- # remote-jobs (7)
- # shadow-cljs (9)
- # testing (9)
Hello, how can I select an element to manipulate it? (like as in js/doc selectors) In example; When I click button (you can see in screenshot) then i want to change some properties, values etc on input element. Or something like that. I checked all demo projects but didn't see clear examples about it, if there is an example sorry about that 🙂 Can anyone help me about it with some simple examples 🙂
Hi! IIUC you're asking how e.g. a button could change the input's background color, does that capture the essence? The cleanest way I can think of is to create an atom above them and change that
I wonder don't we use (document.queryselector - css xpath jquery etc) kind codes in electric? I felt like that because I didn't see similar kinds of codes.
we prefer to derive the UI from data, in which case the coordination happens around it, in this example it's an atom, in another it would be database query results. You might need selectors to target third party HTML
hi @U04SVJW7DLZ I appreciate your questions. I hope to work on a beginner's guide in the next few weeks. It's true that we don't use selectors. We're trying to make it feel like PHP, as direct as possible with no wiring. Please keep asking questions. I will use these conversations as feedback for better docs
I'm getting a weird error trying to use a library under electric:
"No implementation of method: :start! of protocol: #'com.fulcrologic.statecharts.protocols/Processor found for class: com.fulcrologic.statecharts.algorithms.v20150901.Processor
But I can see the method start! on the protocol, and loading it without electric is working fine. Is there something special I need to do for protocols?
Trying to use this statecharts library: https://github.com/fulcrologic/statecharts
hey, can i see a gist
actually this may be the same error as we saw with XTDB
can you try upgrading to 4012a6b10abd5edc02f5dc45744351c84bf4f3a8
using {:git/url ... :git/sha "4012a6b10abd5edc02f5dc45744351c84bf4f3a8"}
ok and if you still have an error please send the stack trace and a copy/paste of the code
Ok, good. This also should resolve the XTDB problems, though I haven't confirmed it yet. I'll cut a new release along with the upcoming deployment changes
The v2-123 hot code reloading changes broke dependency namespaces (i.e. from deps not app src) that use defprotocol
, it's fixed in master