function useDefaultFeedTab
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.

Return Type

[FeedTab, (tab: FeedTab) => void]

Usage

import { useDefaultFeedTab } from "src/hooks/feed/useDefaultFeedTab.ts";