KamoCRM

Email settings redirect lists its hook dependencies

Fixkamo-internal
Shipped
12 செப்டம்பர், 2026 அன்று 2:29 AM UTC
Author
Kamo
Commit
46731ce

The rights check that sends a member without MANAGE_EMAIL_SETTINGS back to /settings ran in an effect that listed only `loading`, so the linter flagged the missing checkRight and router. checkRight is a new function on every render, so depending on it directly would re-run the check each time. The right is now read once per render and the effect depends on that boolean, loading and the router: it still runs when loading finishes and redirects exactly as before.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing