Skip to content

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ErwanDecoster
Copy link
Member

No description provided.

@ErwanDecoster ErwanDecoster self-assigned this Jul 18, 2025
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 18, 2025 4:39pm

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

@Copilot 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

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.

1 participant