Open r3wt opened 6 years ago
I agree. I can't figure out when you should call hydrate
?
I've got a few components that call the stores from componentWillMount
, but there is no example of how to mix that with hydrate
.
I believe you want to rehydrate the data everytime it is updated, but i'm not entirely sure yet.
here is how i had to solve it, by not mounting the app until store was hydrate.
this is dangerous because computed properties don't cause rerenders in mobx. if this is a bug in mobx instead, feel free to notify them.