Fork me on GitHub
#reagent
<
2017-02-11
>
Pablo Fernandez13:02:33

I'm using reagent's create-class and I need to access a value create in :component-did-mount in :component-will-receive-props. What's the best way to get it there? Should I put it in an atom?

pesterhazy13:02:03

should probably be a ratom if your render fn depends on it (though be careful to avoid infinite loops)

pesterhazy13:02:54

you may also split the component into an outer (side-effecting) and inner (pure) component

pesterhazy14:02:05

out of curiosity, what's the use case?