Fix: Memoize NetworkContext value to prevent unnecessary re-renders#47
Fix: Memoize NetworkContext value to prevent unnecessary re-renders#47VineetC137 wants to merge 1 commit intoDjedAlliance:mainfrom
Conversation
📝 WalkthroughWalkthroughThe NetworkContext value is wrapped in useMemo to prevent unnecessary re-renders of consuming components when the NetworkProvider re-renders, addressing a performance optimization issue where the context value object was recreated on every render. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks for reviewing this. |
|
After creating issue, |
What
Why
How
Testing
Fixes #43
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.