Fork me on GitHub
#re-frame
<
2018-03-08
>
fabrao04:03:51

Hello all, Is there any way to only get value from subscribe without reacting the changes?

p-himik13:03:53

Why does re-com prefer passing parameters to components as [& {:keys [a b c]}] instead of just using [{:keys [a b c]}]? Is it just because Reagent tries to get :key from the first map in the list of arguments?

p-himik13:03:48

The advantage of simple maps is that it's easy to format them nicely and much simpler to pass them down to children. Whereas with [& {:keys [...] :as args}] I think you have to use (apply concat args).

pablore14:03:21

Whats the closest way to use the re-frame pattern but still use javascript? Should be something like react + redux + rxjs?

rgm15:03:06

@pablore I've been trying to bring a new JS-only hire into Clojure and re-frame via Redux ... if you squint it seems to provide a lot of what I've come to value in re-frame

rgm15:03:04

mainly that discipline/surprisingly complete model of moving things forward via events

rgm15:03:26

the subscription layer seems a little more diffuse in Redux but that could just be my relative ignorance

pablore15:03:30

I’m trying to mantain a codebase some very special angular people made in react + redux… and its a mess

pablore15:03:57

Impure code everywhere

rgm15:03:24

yeah, I'm also coming to appreciate that if one can mutate one will mutate.

rgm15:03:46

CLJS protects me from my worst impulses pretty frequently.

rgm15:03:57

out of curiosity, what part of re-frame is rxjs analogous to?

pablore16:03:44

the observables are sort of analogous to the query and refer functions

rgm17:03:59

oh, meaning re-frame's (subscribe [:thing a-param-or-two])?

rgm17:03:13

Found this on using all three together ... https://www.youtube.com/watch?v=AslncyG8whg ... again with being a bit surprised what comes out of the box with re-frame.

rgm17:03:13

Found this on using all three together ... https://www.youtube.com/watch?v=AslncyG8whg ... again with being a bit surprised what comes out of the box with re-frame.

joelsanchez22:03:51

since re-frame event handlers aren't registered with vars, it's not possible to ^{:doc "Documentation"} them

joelsanchez22:03:02

options for documenting event handlers besides comments?

danielcompton22:03:30

Open an issue @joelsanchez, we could probably do with an approach for handling Clojure spec too

joelsanchez22:03:07

if you end up doing that, it will begin to look very much like my websocket endpoints api 😂