Move useState hook before early returns to fix React error #300

Fixkamo-internal
Shipped
March 16, 2026 at 4:56 PM UTC
Author
kamo
Commit
c259be1

useState(syncing) was declared after conditional early returns, violating React's rules of hooks.

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