@@ -100,30 +100,32 @@ export function Client({
100100 let _debug = null ;
101101
102102 const state = this . client . getState ( ) ;
103+ const { gameID, playerID, debug : debugProp , ...rest } = this . props ;
103104
104105 if ( board ) {
105106 _board = React . createElement ( board , {
106107 ...state ,
107108 isMultiplayer : multiplayer !== undefined ,
108109 moves : this . client . moves ,
109110 events : this . client . events ,
110- gameID : this . props . gameID ,
111- playerID : this . props . playerID ,
111+ gameID : gameID ,
112+ playerID : playerID ,
112113 reset : this . client . reset ,
113114 undo : this . client . undo ,
114115 redo : this . client . redo ,
116+ ...rest ,
115117 } ) ;
116118 }
117119
118- if ( debug && this . props . debug ) {
120+ if ( debug && debugProp ) {
119121 _debug = React . createElement ( Debug , {
120122 gamestate : state ,
121123 store : this . client . store ,
122124 isMultiplayer : multiplayer !== undefined ,
123125 moves : this . client . moves ,
124126 events : this . client . events ,
125- gameID : this . props . gameID ,
126- playerID : this . props . playerID ,
127+ gameID : gameID ,
128+ playerID : playerID ,
127129 reset : this . client . reset ,
128130 undo : this . client . undo ,
129131 redo : this . client . redo ,
0 commit comments