You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ChessboardProvider.tsx
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ import {
23
23
import{
24
24
fenStringToPositionObject,
25
25
generateBoard,
26
+
getPromotionUpdates,
26
27
getPositionUpdates,
27
28
}from'./utils';
28
29
import{
@@ -390,6 +391,34 @@ export function ChessboardProvider({
390
391
return;
391
392
}
392
393
394
+
// this extra position check will only run if the position HAS changed, but we have been unable to identify the pieces that have moved, reducing the impact of the performance overhead
0 commit comments