fix(profile): fix(profile): resolve real-time state desync between profile update form and DevCard using onSnapshot (#570)#597
Merged
Aditya948351 merged 2 commits intoJun 13, 2026
Conversation
…orm and DevCard using onSnapshot
… changes, and fix profile username prerendering parameters
Contributor
Author
|
@Aditya948351 please review the pull request |
Collaborator
|
Great detailed description! Resolving the real-time state desync with onSnapshot is exactly what we needed for the DevCard. I'll review this soon. |
50ce3ef
into
devpathindcommunity-india:master
1 of 2 checks passed
This was referenced Jun 13, 2026
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.
🚀 Final Pull Request Details for Issue #570
Description:
This PR successfully resolves the critical client-side state desynchronization glitch between the Profile Update Form settings and the dynamic visual
DevCardpreview component. Previously, updates to user profile metadata required a manual browser hard refresh (F5) to reflect on the card UI.Key Technical Implementations:
DevCard.tsxto handle a local reactive state variablerealTimeUserinitialized directly from the authentic user props context.onSnapshotbound to the active user's document path.membersor theadminscollection based on their active role paradigm.useEffecthook stack to terminate the live database socket connection upon component destruction, eliminating any potential client memory leaks.Verification & Quality Assurance:
npm run buildlocal compilation check.Fixes #570