fix(meteor): useMemo side-effect in RoomsTable#40617
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Walkthrough
ChangesRoomsTable Pagination Side Effect Fix
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
There was a problem hiding this comment.
1 issue found across 3 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".changeset/fix-ip-whitelist-trim.md">
<violation number="1" location=".changeset/fix-ip-whitelist-trim.md:5">
P2: Changeset describes unrelated IP whitelist fix instead of the PR's RoomsTable useMemo fix</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| "@rocket.chat/meteor": patch | ||
| --- | ||
|
|
||
| fix: trim whitespace from IP whitelist entries in failed-login protection |
There was a problem hiding this comment.
P2: Changeset describes unrelated IP whitelist fix instead of the PR's RoomsTable useMemo fix
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .changeset/fix-ip-whitelist-trim.md, line 5:
<comment>Changeset describes unrelated IP whitelist fix instead of the PR's RoomsTable useMemo fix</comment>
<file context>
@@ -0,0 +1,5 @@
+"@rocket.chat/meteor": patch
+---
+
+fix: trim whitespace from IP whitelist entries in failed-login protection
</file context>
2d39044 to
ae69f88
Compare
Fixes #40589 by extracting the setCurrent(0) side effect from useMemo into useEffect where state mutations belong, ensuring pure computation and respecting React's rendering contract.
Summary by CodeRabbit
Release Notes