Fork me on GitHub
#re-frame
<
2019-10-10
>
akond17:10:45

i wonder is it possible to use re-frame without reagent?

akond17:10:01

i mean without dom manipulation at all.

jahson17:10:08

But for what?

akond17:10:22

for state manipulation

akond17:10:10

i know it has been built with reagent in mind. but the application i'm doing deviates from reagent.

akond17:10:13

for example, re-frame rf/subscribe gives me a reaction (an atom sort of), but it is reactive. it does not do a thing until dereferenced.

akond17:10:31

it is ok when reagent is in place, but i don't have one.

Lu17:10:41

@akond there is one example if you google it .. it was an interesting read

lilactown17:10:04

@akond look up reagent reactions. there is an API in reagent to track/watch them

akond18:10:11

@lilactown oh, it works! thank you very much indeed, sir.

akond18:10:27

@lucio could you be more specific?

kenny18:10:22

@akond We have a basic version of re-frame implemented on the backend for handling case where lots of mutations need to occur.

akond18:10:14

anything to show?

kenny18:10:46

Not really — it’s too basic and somewhat tailored to our use case. Really the only concept we use is an idea of reg-fx and returning an “fx map”.