907be9cbc0
newGame create: newgame fist in a gamelist
2023-11-14 12:04:16 +01:00
c969007436
39-message2opponent ( #40 )
...
Reviewed-on: http://192.168.8.55:3000/HQLAx/CordaCheckers/pulls/40
2023-11-14 11:54:15 +01:00
04f0b86527
api.push ( #36 )
...
Reviewed-on: http://192.168.8.55:3000/HQLAx/CordaCheckers/pulls/36
2023-11-13 16:55:10 +01:00
2482226e0e
Better useXxxApi ( #34 )
...
useXxxApi:
use PollingReducer as a configuration provider
provide pushAPIs, which update respective state with:
pushing status
push result
PollingReducer:
rename to configurationReducer
move polling indication to it's respective state
XxxState.polling = 'true/false'
Reviewed-on: http://192.168.8.55:3000/HQLAx/CordaCheckers/pulls/34
2023-11-12 19:40:55 +01:00
cd62d90de8
Polling hook useRef
...
do not useState for internal values. which are not relevnat to rendering
This will only trigger unnecessary rerenders
2023-11-10 13:10:30 +01:00
ac50d92c1a
GamesContext: initial implementation
2023-11-09 13:59:14 +01:00
3f47654cf2
react: state -> reducer -> context
...
- Leaderboard: useState
- User: useReducer
- Games: useContext [...in progress]
- usePolling giveup on internal cache
in favour of onResponce() callback
2023-11-09 12:29:47 +01:00
aa2a250085
Games container sceleton
...
- use Route for conditional rendering
- useGamesAPI
- Checkers component
2023-11-08 18:22:05 +01:00