This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-28
Channels
- # anglican (2)
- # announcements (2)
- # babashka (41)
- # babashka-circleci-builds (1)
- # beginners (45)
- # brompton (2)
- # calva (13)
- # cider (13)
- # clj-kondo (14)
- # cljsrn (6)
- # clojure (60)
- # clojure-europe (4)
- # clojure-nl (3)
- # clojurescript (1)
- # code-reviews (3)
- # conjure (2)
- # cryogen (5)
- # datomic (22)
- # fulcro (13)
- # graalvm (19)
- # introduce-yourself (1)
- # kaocha (2)
- # leiningen (2)
- # lsp (1)
- # malli (4)
- # meander (1)
- # music (1)
- # news-and-articles (2)
- # off-topic (17)
- # polylith (6)
- # practicalli (2)
- # react (15)
- # reactive (1)
- # reagent (8)
- # reitit (2)
- # releases (1)
- # rum (10)
- # shadow-cljs (6)
- # spacemacs (4)
- # sql (2)
- # tools-deps (4)
- # xtdb (21)
I'm trying out re-pressed (for re-frame) is the workflow intended to be that it'll capture a key event on any/all elements and then you have one event handler to sort out which element was in focus/active during the keypress and sort it out from there?
Hi,
I'm trying to play with reagent, but failed to get started:
This command failed:
$ lein new reagent-frontend play-reagent-frontent
Failed to resolve version for reagent-frontend:lein-template:jar:RELEASE: Could not find metadata reagent-frontend:lein-template/maven-metadata.xml in local (/home/whatacold/.m2/repository)
Failed to read artifact descriptor for reagent-frontend:lein-template:jar:RELEASE
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
Could not find template reagent-frontend on the classpath.
I have clojar in my ~/.lein/profiles.clj
, but don't have it in ~/.m2/settings.xml
{:user
{:mirrors {
"central" {:name "aliyun" :url " "}
#"clojars" {:name "tsinghua" :url " "}
}
}
}
I'm having an atom (not ratom) which I want to subscribe to via r/subscribe. How can I do it?
It's somewhere in the re-frame documentation - subscribe
is part of re-frame's API. I don't remember Reagent having an opinion about this.
But you could use a similar approach - create an extra ratom, add a watch to a regular atom and reset that ratom in there, and use the ratom in your views. Convoluted and feels wrong, but might work alright.
I mean, I was implementing my own atom-like thing and trying to use it with Rum, which does allow that kind of thing. But I found I need a local cache for speed and a synchronous API, so I might as well use a ratom as the cache so everything works out as expected.
How to use react-native components in my reagent projects?