-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
question about coordinating two components #10
Comments
I ended up using redux based on the POJO's you provided. I had to reimplement game navigation login in the reducer, and also add support for adding new variations, etc. - good learning exercise. I appreciate your decision to make the POJO representation available, that was a very farsighted design choice. |
Hi, If you just need to synchronize a
Of course, in a real-life code, you may want to lift the |
Yes, you are right - I have about three consumers of the state stretched from one end of the tree to the other, so I went with redux, since I had been meaning to learn how to use it anyway. |
In my use case, I would like to have an interactive Chessboard in one part of the component tree, and a MoveText in another part. I would like them to share the same Game state: ie. the user might interact with either of them, and I want the other one to be synchronized. Is this something that this library is designed for/capable of? If so, would it be possible to offer a few hints about how to do it?
The text was updated successfully, but these errors were encountered: