Reactjs – chess engine keeps calculating old fen position once a new fen is given
I'm trying to create a chess engine eval bar for React. For this I've added stockfish.js to my project and using the web worker api, initialized the engine inside a useEffect that gets re-rendered each time the fen changes. The…