Initialize god mode state synchronously from localStorage

Fixkamo-internal
Shipped
March 22, 2026 at 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?

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

Start Free ForeverView Pricing