Lets a user choose which feed tab the index opens on, remembered in this browser.
f
useDefaultFeedTab(): [FeedTab, (tab: FeedTab) => void]
Returns the feed tab the index opens on, and a setter that stores a new choice. The settings page sets it; the feed reads it through useViewerDefaultFeedTab. A new choice reaches every reader at once, in this browser tab and the others.
f
useViewerDefaultFeedTab(): FeedTab
Returns the tab the bare / and /<category> show this viewer: their
choice, or DEFAULT_FEED_TAB for "follow" when nobody is signed in,
since it needs a session. Index and its tab bar read it.
Usage
import * as mod from "src/hooks/feed/useDefaultFeedTab.ts";