Skip to content

Conversation

@jonty007
Copy link
Collaborator

New Chess UI

@jonty007 jonty007 requested a review from ClemensLey January 23, 2025 17:05
if (gameId) {
const subscribeToComputer = async () => {
close = await computer.subscribe(gameId, (rev) => {
if (rev) syncChessContract()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. We should pass rev into "syncChessContract" and "fetchContract" so we don't have to use computer.query there
  2. We should improve the computer.subscribe function so that it does not call the callback on the "keep alive" messages (in this case rev is "".

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be fixed in a future PR

@ClemensLey ClemensLey merged commit a0117a4 into main Jan 28, 2025
@ClemensLey ClemensLey deleted the feat/chess-new-ui branch January 28, 2025 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants