Source: src/store/reducers/zerodha.ts

State

Actions

Selector

Writers

Header — after getZerodhaStatus():
On disconnect / invalidate token → setZerodhaStatus(false).

Readers

dashboardUser.tsx — blocks manual orders when false:

Why Redux for this flag

Header and dashboard are far apart in the tree. Redux avoids prop drilling for a global broker session indicator updated asynchronously from API. Auth JWT state remains separate — app login ≠ Zerodha Kite login.