-
Notifications
You must be signed in to change notification settings - Fork 243
[FAQ] MobX and react-async-bootstrapper #408
Comments
Please read #409 |
@birkir 👆 |
I have updated the Let me know what your experience is like. Thanks! |
@ctrlplusb what a man. I tried it out and it worked great after I fixed a little bug in passing the options to recursive function. I added a PR for it. I really appreciate your effort in solving the issue with mobx. |
Radness! Have you had luck rehydrating state from server to client? |
Version 2.1.1 of |
Awesome stuff! About re-hydration, I usually use a single domain store (that contains other stores like UI, User, Items, etc.) that I rehydrate from the server, components then inject the store and I get kind of valid rehydration. However I sometimes use mobx within a component for state management and haven't got them to re-hydrate (yet...) 👍 But hey, great work Sean. |
@ctrlplusb @birkir I know I can count on you guys. Preparing migration for my production to version 13 I guess. |
@ctrlplusb @birkir i have bad message for you guys, this error still happened in feature/mobx branch. Exactly after you refresh on Counter page then click increment/decrement button. |
@diondirza can you check your node modules and ensure |
@ctrlplusb just found pulled Update: found this on
|
run a |
The problem caused by |
Anyways, I make a little experiment here. Try to call Executed 2 times in server and 2 times in client, so I guess for now better using |
@diondirza if you are going to do state modification on server you need to send that state back to the client somehow so that it can use it to start with. I know how to do this with |
Actually my concern is not maintain modified state to have same value both client and server. Instead I usually set flag in my store on componentWillMount and that flag has side-effect to do ajax call to fetch some data. Probably need to re-tweak some of my code for this changes. |
Yeah, you could try use the |
Cool, just look at it's README, gonna continue to try it tomorrow. It's pretty late here. Anyway good job guys. |
@ctrlplusb, I upgraded to the lastest version of |
Worked for me too |
Hey all
MobX does some
componentWillMount
observability bindings that don't play nicely with the current architecture of this starter kit. For now I recommend against using MobX until I can investigate this further.💖
Update
We have a solution, detailed below and implemented in the mobx branch. x
The text was updated successfully, but these errors were encountered: