fix(speakers): Avoid refetching activities count unnecessarily#993
fix(speakers): Avoid refetching activities count unnecessarily#993mulldug wants to merge 1 commit into
Conversation
…earch changes Activities count only depends on filters, not on pagination, sort order, or search term. Extracted getSpeakersActivitiesCount and getSubmittersActivitiesCount as standalone exported actions and moved the dispatch to getBySummit in the page, skipping it for handlePageChange, handleSort, and handleSearch.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthrough
ChangesActivities Count Thunk Extraction and Selective Refresh
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
ref: https://app.clickup.com/t/9014802374/86b9b1qrk
Avoid refetching activities count on page, sort, and search changes
Activities count only depends on filters, not on pagination, sort order, or search term. Extracted getSpeakersActivitiesCount and getSubmittersActivitiesCount as standalone exported actions and moved the dispatch to getBySummit in the page, skipping it for handlePageChange, handleSort, and handleSearch.
Summary by CodeRabbit