Do not depend on Coord's instance methods from serialized board state…#753
Conversation
|
Thank you! |
|
Thank you @mateusazis and @flamecoals! |
|
@mateusazis Can we get rid of this class entirely? This is a known issue that classes are not serializable, so I am worried another corner case might bring the same issue as we are calling other methods on the game logic. I missed this during review, sorry. |
|
We can. But, as you said, this doesn't prevent this bug from coming back. The boardgame.io docs warn about it but also don't prevent it. Some ideas that came to my mind were:
Ideally, the 2nd approach would go into the boardgame.io lib. |
|
@mateusazis I am not sure if the first approach is feasible either. Let's go with the second approach, I think this would also help other developers on the boardgame.io community. We can probably allow for a "strict check" during testing on the boardgame.io Client API. I created #754 to keep track of the work. |
|
For now, I sent you @mateusazis #755 to remove the class from checkers entirely. |
… in checkers.
Fixes #750.
Checklist
master).