-
Notifications
You must be signed in to change notification settings - Fork 1
feat: code refactor and request fetching optimisation #124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…and improve fetching
…er granting access and sending message
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the contact management functionality to improve request fetching optimization and code organization. The changes extract individual contact rendering logic into a separate component and optimize data fetching patterns.
- Extracts contact item rendering into a dedicated
ContactItem
component for better code organization - Optimizes contact fetching by moving individual contact details fetching to the component level with improved caching
- Adds query invalidation to ensure contact data stays synchronized after operations
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
src/views/contact/sendMessage.tsx | Adds query invalidation and fixes message send state management |
src/views/contact/contactList.tsx | Refactors to use ContactItem component and optimizes contact type handling |
src/views/contact/ContactItem.tsx | New component for rendering individual contact items with optimized data fetching |
src/modules/myData/protectedData/GrantAccessModal.tsx | Adds query invalidation for contact list updates |
package.json | Updates @iexec/web3mail dependency version |
Co-authored-by: Copilot <[email protected]>
…ExecBlockchainComputing/web3-messaging-usecase-demo into fix/too-many-request-and-code-refactor
…tate handling in ContactItem
No description provided.