Fork me on GitHub
#reagent
<
2020-07-30
>
gleisonsilva17:07:30

Hey! Should a (def thing (reaction (some-fn-over @app-state)) be automatically changed after some change happens to @app-state?

gleisonsilva17:07:36

i mean... this is the way that reaction is supposed to work? Like a cursor but applying some function to the state?

gleisonsilva17:07:24

I think it was, but a have bound thing to a component and it isn't updated when @app-state changes...

David Pham18:07:26

I think you h e to deref thing

gleisonsilva18:07:01

I'm derefing...

gleisonsilva18:07:46

but the function some-fn-over is been called just the first time that I deref