Skip to content

fix(perf): memoize SearchResults component to reduce unnecessary renders - #563

Merged
nanaf6203-bit merged 3 commits into
MettaChain:mainfrom
Moonwalker-rgb:fix/458-searchresults-memo
Jun 29, 2026
Merged

fix(perf): memoize SearchResults component to reduce unnecessary renders#563
nanaf6203-bit merged 3 commits into
MettaChain:mainfrom
Moonwalker-rgb:fix/458-searchresults-memo

Conversation

@Moonwalker-rgb

Copy link
Copy Markdown
Contributor

Summary

Fixes #458

Wraps SearchResults in React.memo and stabilizes parent handler references with useCallback.

Changes

  • SearchResults.tsx: Wrap component in React.memo
  • properties/page.tsx: Wrap handlers passed to SearchResults in useCallback

Testing

  • TypeScript compilation: no new errors introduced
  • All modified files pass type-checking

Closes #458

…bility (MettaChain#455)

Replace key={index} with stable composite keys across components
where lists can mutate, improving screen-reader announcements:

- MultiChainPortfolio: use propertyId-fromChain-toChain for bridge suggestions
- WalletModal: use content+index for warning/block messages
- SecureTransactionConfirmation: use content+index for warning/risk messages
- TransactionConfirmation: use content+index for warning/block messages

Closes MettaChain#455
@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@Moonwalker-rgb Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Copy link
Copy Markdown
Contributor

Same head SHA as #562. Closing this duplicate.

@nanaf6203-bit
nanaf6203-bit merged commit b8bfc33 into MettaChain:main Jun 29, 2026

Copy link
Copy Markdown
Contributor

Memoizing SearchResults — great perf win. Appreciated!

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.

perf: SearchResults not memoized

2 participants