Fork me on GitHub
#rum
<
2017-03-26
>
jrychter10:03:56

@tonsky — is there a reason why rum/local initializes the atom in :will-mount instead of :init? I'm having trouble avoiding a double-render, because I can't reset! my local state atom in :init.

Niki11:03:47

@jrychter I don’t remember the exact reason. I do remember that, at one point, it was not clear how and when init got called

Niki11:03:57

but it should prob. be fine now

Niki11:03:19

you can try it with your own version of rum/local

jrychter11:03:03

IMHO it would be better to initialize it in :init. The current way means that if you initialize it, you will always get a re-render. I'll try it and see if there are any problems.