next-chessground 0.11.4 → 0.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5970,7 +5970,7 @@ const useChess = props => {
|
|
|
5970
5970
|
setChess(new chess.Chess(props.fen));
|
|
5971
5971
|
setLastMove([]);
|
|
5972
5972
|
}
|
|
5973
|
-
}, [props.fen]);
|
|
5973
|
+
}, [props.fen, props.reset]);
|
|
5974
5974
|
const [lastMove, setLastMove] = useState([]);
|
|
5975
5975
|
const promotion = props.lastMove && props.lastMove.promotion;
|
|
5976
5976
|
const turnColor = chess$1.turn() === 'w' ? 'white' : 'black';
|
package/dist/index.js
CHANGED
|
@@ -5979,7 +5979,7 @@ const useChess = props => {
|
|
|
5979
5979
|
setChess(new chess.Chess(props.fen));
|
|
5980
5980
|
setLastMove([]);
|
|
5981
5981
|
}
|
|
5982
|
-
}, [props.fen]);
|
|
5982
|
+
}, [props.fen, props.reset]);
|
|
5983
5983
|
const [lastMove, setLastMove] = React.useState([]);
|
|
5984
5984
|
const promotion = props.lastMove && props.lastMove.promotion;
|
|
5985
5985
|
const turnColor = chess$1.turn() === 'w' ? 'white' : 'black';
|