wealth/docs/decisions/0045-channel-read-carries-f...

761 B

0045 The channel's server read carries the public follower count

Status: Proposed · Area: architecture · Date: 2026-10-09 · Decided by: agent

Context

The new channel header shows the follower count to everyone and «مشترک فعال» only to the owner (R15).

Decision

getChannel also reads GET /v1/creators/:id/followers-count on the server, so the count is in the first paint; the browser keeps it live as query initialData (0021) and re-reads it after follow or unfollow. The owner's subscriber count loads only in the browser.

Alternatives

  • Browser-only count: the header would shift when it arrives.

Consequences

One more server request per channel and checkout render; a failed count renders null and the browser reads it.