Email settings redirect lists its hook dependencies

Fixkamo-internal
Shipped
September 12, 2026 at 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?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing