This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-07
Channels
- # announcements (20)
- # babashka (25)
- # beginners (48)
- # biff (26)
- # calva (5)
- # cider (3)
- # clara (7)
- # clerk (7)
- # clj-kondo (61)
- # cljdoc (3)
- # clojure (6)
- # clojure-austin (1)
- # clojure-conj (8)
- # clojure-europe (58)
- # clojure-nl (1)
- # clojure-norway (4)
- # clojure-poland (1)
- # clojure-uk (9)
- # cursive (2)
- # emacs (11)
- # fulcro (8)
- # graphql (14)
- # gratitude (6)
- # humbleui (10)
- # hyperfiddle (17)
- # integrant (15)
- # introduce-yourself (1)
- # leiningen (5)
- # malli (13)
- # meander (21)
- # nbb (11)
- # off-topic (15)
- # pedestal (15)
- # polylith (15)
- # quil (28)
- # rdf (2)
- # reitit (3)
- # releases (6)
- # sci (21)
- # shadow-cljs (38)
- # spacemacs (3)
- # xtdb (6)
Hello everyone! :)) I need little help, can you take a look my Stackoverflow post please? https://stackoverflow.com/questions/75661963/hyperfiddle-electric-clojure-how-to-add-new-values-into-table-as-table-forma
We will take a look, i have a zoom call now but will look after
Before everything thank you so much for you that you put a huge effort into that great project. I am very hyped about learning it š And of course nice to meet you š My problem is can be easy so sorry about that.
@U04SVJW7DLZ hey, have you looked at the demos? https://github.com/hyperfiddle/electric/blob/master/src-docs/user/demo_4_chat.cljc and https://github.com/hyperfiddle/electric/blob/master/src-docs/user/todos_simple.cljc show how to insert records into a collection
To run the demos, clone the main repo, instructions https://github.com/hyperfiddle/electric#getting-started
https://github.com/hyperfiddle/electric/blob/master/src-docs/user/demo_2_toggle.cljc shows how to use a button
hello, yes I trying to read demo applications codes and learn, but some of them little confusing for me as a beginner. But i will take a look demo todos simple and learn how to do that. Thank you š
Did you figure out how to do it?
Hi. I'm trying to use shadow-css, and I think I ran into the next issue.
Its css macro uses *ns*
to generate the css class names, which results in a mismatch between the generated *.css file and the inline class name string used in dom/props
.
The *.css file is generated on the server separately by processing file by file, but the js compilation step picks up the hyperfiddle.electric.impl.compiler
ns instead of, for example, app.todo-list
.
This can be worked around by using the css macro outside of e/defn
, but then we lose the not having to name things feature of shadow-css.
I don't know if this is best worked out in electric or in shadow-css. Is it possible for server/client code inside an e/def
to get the ns in which it was defined?
iām not the best person to answer this, let me discuss with the team and get back to you
For me, I don't know if I need the auto-generated names part of shadow-css at an individual component level. It seems the same as in-lining a style, and I'd rather create and reuse css from outside of the e/defn
s .
But, I thought it might be important to others
Thank you for the report Anthony.
I believe *ns*
should be bound to the current ns during macroexpansion. We'll see what we can do.
I pushed a fix to master. New :git/sha
is a49ca10d81a73bb98a6058b5ef244d4ac58645e8
.
Macros (like shadow.css/css
) will now see the correct *ns*
binding.
Does it fix your issue?
It looks good and also, now my timbre messages show the correct ns, too.š Thank you for the quick work on it.
How is the experience using Timbre from Electric ? Did you face any issues?