Skip to content

Conversation

@ErwanDecoster
Copy link
Member

No description provided.

@ErwanDecoster ErwanDecoster self-assigned this Jul 18, 2025
@vercel
Copy link

vercel bot commented Jul 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web3-messaging-usecase-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2025 10:42am

@ErwanDecoster ErwanDecoster requested a review from Copilot July 18, 2025 15:59
Copy link
Contributor

Copilot AI left a 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

@Le-Caignec Le-Caignec merged commit a1eadf4 into main Jul 22, 2025
4 checks passed
@Le-Caignec Le-Caignec deleted the fix/too-many-request-and-code-refactor branch July 22, 2025 10:43
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.

3 participants