Fix: State race condition and clean refactor#26
Open
akbarsaputrait wants to merge 6 commits intomasterfrom
Open
Fix: State race condition and clean refactor#26akbarsaputrait wants to merge 6 commits intomasterfrom
akbarsaputrait wants to merge 6 commits intomasterfrom
Conversation
…n, including critical insights for AI assistants and common pitfalls to avoid
…ton transition styles
…ment with request ID tracking to prevent stale updates
…ction management to prevent duplicate prompts
…ion documentation, and streamline package scripts
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
… analysis, and update dependencies for improved payment handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Fixes critical payment state race conditions and adds comprehensive documentation.
Key Fixes
1. Payment State Race Condition
Files:
usePaymentState.ts,paymentEffects.tsAdded request ID tracking to prevent stale state updates during payment transitions and cross-chain switches.
2. Stellar Wallet Duplicate Prompts
Files:
StellarContextProvider.tsx,ConnectStellar/index.tsxFixed double wallet connection prompts by adding connection state tracking and lifecycle checks.
3. Modal Z-Index Issues
Files:
Modal/index.tsx,Modal/styles.tsImproved WalletConnect overlay stacking and button transition animations.
4. Code Cleanup
Removed unused utilities
useGoogleFont.tsx,useLocalStorage.ts,useModal.tsp3.ts,supportUrl.ts,validatePayoutToken.ts5. Documentation Added
docs/ARCHITECTURE.md- FSM, multi-chain architecture, payment flowsdocs/TROUBLESHOOTING.md- 30+ issues with solutionsdocs/QUICK_REFERENCE.md- State transitions, hook patternsdocs/STELLAR_EXTERNAL_KIT_AND_CONNECT.md- Stellar integration guidedocs/README.md- Documentation indexCLAUDE.md- Added "Critical Insights for AI Assistants" section