boardgameio / boardgame.io

State Management and Multiplayer Networking for Turn-Based Games
https://boardgame.io
MIT License
10.02k stars 708 forks source link

Phase Hook behavior not fully documented #808

Open jimu opened 4 years ago

jimu commented 4 years ago

Phases Documentation should include:

1) the order that hooks are executed 2) the conditions under which they are executed

See

delucis commented 4 years ago

Agreed that these would be very helpful to add — I’m not even 100% clear on order myself.

delucis commented 3 years ago

These tests might be a good place to start:

https://github.com/boardgameio/boardgame.io/blob/7254749886d7b6c1415a5dc2abeccf03260833cf/src/core/flow.test.ts#L1521-L1731

delucis commented 3 years ago

bgio-hooks-order