Skip to content

fix(host): move WELCOME debug log after early-return guard#42

Merged
faluciano merged 1 commit into
mainfrom
fix/host-welcome-useeffect-spam
Mar 3, 2026
Merged

fix(host): move WELCOME debug log after early-return guard#42
faluciano merged 1 commit into
mainfrom
fix/host-welcome-useeffect-spam

Conversation

@faluciano
Copy link
Copy Markdown
Owner

Summary

  • The WELCOME useEffect in GameHostProvider runs on every [state] change but had no debug logging for when it actually sends messages
  • Added a console.log gated behind config.debug after the early-return guard (pendingWelcome.size === 0), so it only fires when actually sending WELCOME/RECONNECTED messages
  • This prevents debug noise during normal gameplay — no behavioral change

@faluciano faluciano merged commit 8a5be21 into main Mar 3, 2026
7 checks passed
@faluciano faluciano deleted the fix/host-welcome-useeffect-spam branch March 3, 2026 06:19
@couch-kit-release couch-kit-release Bot mentioned this pull request Mar 3, 2026
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.

1 participant