Initialize god mode state synchronously from localStorage

Fixkamo-internal
Shipped
22 de março de 2026 às 01:20 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

Como o que vês no transporte?

Cada uma dessas atualizações pousa automaticamente em seu espaço de trabalho. Comece grátis e veja crescer semana após semana.

Começar Livre Para SempreVer Preços