Fork me on GitHub
#hyperfiddle
<
2023-03-07
>
Can13:03:46

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

šŸ‘‹ 4
āœ… 2
Dustin Getz13:03:12

We will take a look, i have a zoom call now but will look after

Can13:03:23

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.

gratitude 2
šŸ™‚ 2
Dustin Getz17:03:18

To run the demos, clone the main repo, instructions https://github.com/hyperfiddle/electric#getting-started

Can18:03:05

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 šŸ™‚

Dustin Getz19:03:12

Did you figure out how to do it?

Anthony22:03:31

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?

āœ… 2
Dustin Getz23:03:32

iā€™m not the best person to answer this, let me discuss with the team and get back to you

Anthony00:03:41

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/defns . But, I thought it might be important to others

vincent02:03:34

there is probably a smart way to do this paging tj heller x)

Geoffrey Gaillard06:03:31

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.

Geoffrey Gaillard11:03:06

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?

šŸ‘ 2
Anthony00:03:40

It looks good and also, now my timbre messages show the correct ns, too.šŸ˜„ Thank you for the quick work on it.

šŸ‘ 2
Geoffrey Gaillard07:03:49

How is the experience using Timbre from Electric ? Did you face any issues?

Anthony02:03:32

No issues yet. I'm not ready to dive into the traditional java logging, and I mostly use timbre for getting console messages.

šŸ‘ 2