Fork me on GitHub
#re-frame
<
2019-04-18
>
Aris Spathis08:04:04

Hello, I would like to ask a question: is it ok for event handlers to mutate r/atoms?

lilactown14:04:09

I think general practice is to return an effect

Aris Spathis15:04:46

yeah, I thought about it and it seems that r/atoms are better suited for holding local component state, which is not meant to be tampered with inside handlers... thanks for your answer anyway!