Topic Preferences Store
Properties
Link copied to clipboard
The full known topic catalogue, each entry flagged with whether the user follows it. The single source of truth the rest of the app reacts to: updated by syncKnownTopics (server fetch) and setSelectedTopics (user editing interests), and persisted across launches.
Link copied to clipboard
The followed subset of knownTopicsFlow — what the feed header shows after "All".
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Reconcile a catalogue fetched from GET /v1/topics with the known one: the server list wins (its order follows sort_order; topics it no longer serves drop out), selection flags are preserved by id, and topics never seen before come back as the return value so the UI can announce them. Newly discovered topics start unselected.