KamoCRM

Initialize god mode state synchronously from localStorage

Fixkamo-internal
Shipped
22 மார்ச், 2026 அன்று 1:20 AM UTC
Author
kamo
Commit
87ece9b

isGodMode was initialized as false and only loaded from localStorage in a useEffect (after first render), so checkRight() returned false on initial render even when god mode was active. Now uses useState initializer to read localStorage synchronously, avoiding the flash of denied state.

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