This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-20
Channels
- # announcements (8)
- # babashka (19)
- # beginners (100)
- # boot (3)
- # calva (16)
- # cider (8)
- # cljdoc (6)
- # cljsrn (15)
- # clojure (73)
- # clojure-europe (7)
- # clojure-france (1)
- # clojure-italy (12)
- # clojure-nl (11)
- # clojure-sg (1)
- # clojure-uk (17)
- # clojurescript (63)
- # cursive (22)
- # data-science (2)
- # datomic (2)
- # defnpodcast (1)
- # docs (1)
- # fulcro (7)
- # graalvm (8)
- # jackdaw (1)
- # kaocha (11)
- # off-topic (26)
- # pedestal (4)
- # planck (1)
- # re-frame (35)
- # reitit (5)
- # ring (3)
- # shadow-cljs (25)
- # slack-help (11)
- # spacemacs (8)
- # specter (2)
- # tools-deps (61)
- # vscode (6)
- # xtdb (3)
good morning, how do you prefer to manage your re-frame DB atom?
I'm currently looking at re-posh
which basically provides a similar API to talk to a DataScript database.
Then I found Keechma's very simple but useful EntityDB to enforce some structure on a client-side DB.
There are so many options.
I assume, most people roll their own mutation/querying ?
We rolled our own minimal kind of thing with maps, https://github.com/riverford/compound
we needed multiple indexes for our kind of data model
we don't have a very large or complex DB atom, so ended up just using https://gitlab.com/nikperic/reframe-utils + clojure.spec for now. Been working well for about ~7 months we've been using it. touches wood
Hi everyone,
is there anybody using materialize ui with re-frame ?
actually i'm using a bulma but i want more advanced one which has components
is there a lib which you are using for it, or just the npm package?
or what?
Just the NPM package. All the libs that I've seen don't require the NPM package in the right way. And they don't give any noticeable advantage over using the NPM package itself.
can you give example of how do you use that?
even for one component
Just as any other React component in Reagent.
[:> Button {...some flags...}
... some children ...]
what is : > ?
It's described here: http://reagent-project.github.io/docs/master/InteropWithReact.html
that's perfect
Although usually I do something like (def button (reagent/adapt-react-class Button))
and then just use it as [button {...} ...]
.
what's your impression on it ?
is there something you see better or worthwhile ?
have you checked bulma before ?
It's fine. I haven't worked with many other UI libraries, except for Bootstrap and re-com, so I can't really say anything here. I imagine there are trade-offs that you have to study before making a choice.
also do you have something live using matrial UI ?
Bulma doesn't have support for numeric inputs - you have to implement them yourself, maybe on top of their text inputs. That's why I didn't even try it. Nothing I can show right now, no.
okay that's a great help, thank you
Although if I did have something, it wouldn't be that different from any other website that uses Material UI. So you can just check anything from https://material-ui.com/discover-more/showcase/
has someone tried to use spec for the output of subscriptions? I often find it difficult to check what a subscription returns. Annotating it with some spec would be helpful (also for generating test). Any ideas?
This may not be the solution you're looking for, but https://github.com/day8/re-frame/blob/master/docs/Testing.md#subscription-handlers is probably the place I would start - spec the function rather than the handler.