Session state and billing in Gigson

Separating client state from server data during the recruitment application's modernization.

I owned frontend development for Gigson through its launch and later modernization. During the January-February 2026 work, I reworked authentication, sessions, and billing while moving client state to Zustand and server state to TanStack Query.

State ownership

The modernization established explicit cache ownership and invalidation. Session state and server-owned user data had different responsibilities; billing changes needed to refresh the relevant account and billing views.

Verification

I introduced 63 tests covering authentication, billing, and sessions, plus CI checks. Raw production build output fell from 3.13 MB to 2.07 MB, a reduction of 34%.

Read the Gigson case study.