Fork me on GitHub
#reagent
<
2021-08-28
>
Thomas Meier03:08:50

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?

whatacold09:08:50

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 ""}
            }
  }
 }

whatacold09:08:42

I've googled for a while, but haven't found a solution yet.

Karol Wójcik19:08:15

I'm having an atom (not ratom) which I want to subscribe to via r/subscribe. How can I do it?

p-himik07:08:17

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.

p-himik07:08:26

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.

Pepijn de Vos08:08:45

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.

ChillPillzKillzBillz20:08:59

How to use react-native components in my reagent projects?