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
* Add no-WASM mode with automatic cache prefilling
- Add ?no-wasm=true URL parameter to force RPC mode for debugging
- Fix RPC serialization issues with HashMap<PlayerID, _> by adding custom Deserialize
- Implement automatic cache prefilling when cards encounter uncached trumps
- Prevent O(n) duplicate requests with promise-based tracking mechanism
- Ensure cards wait for active prefills instead of making individual requests
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
* Optimize Cards component to avoid redundant sortAndGroupCards calls
- Use stable string key for cards in hand to prevent unnecessary re-renders
- Only re-run sorting when actual card content changes, not just object references
- This reduces repeated sortAndGroupCards calls during gameplay
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
* Fix memoization in Cards component
- Create stable key from actual hand data (card->count mapping) instead of derived array
- Prevents unnecessary re-renders when hands object reference changes but content is same
- Properly memoizes the key generation to avoid recreating it every render
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
* Improve RPC error handling to diagnose NextThresholdReachable issue
- Better error messages when JSON parsing fails
- Log the actual response text for debugging
- This will help identify if server is returning non-JSON error messages
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
* Fix NextThresholdReachable serialization issue
- Wrap boolean response in a struct to work with serde tag="type"
- Update both RPC and WASM versions to return { reachable: bool }
- Fix frontend to handle the new response structure
- Add better error logging to diagnose JSON parsing issues
The issue was that serde cannot serialize a primitive boolean as a tagged enum variant.
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
* Fix WASM/RPC optimizations and reduce console logging
- Add ?no-wasm=true URL parameter support for debugging RPC mode
- Fix duplicate batchGetCardInfo requests by tracking active prefills
- Optimize React dependency tracking to prevent unnecessary re-renders
- Fix NextThresholdReachable RPC serialization error
- Ensure WASM and RPC versions maintain consistent API
- Remove excessive console.log statements (keeping no-WASM mode log)
- Update TypeScript types for new response structures
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* delete unnecessary files
* format
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments