In-App UI
JavaScript
Types
FeedStoreState

FeedStoreState

A zustand state store that holds the current feed state, including item counts, for easy notification feed rendering within your application. The FeedStoreState is entirely managed by the Feed instance, and any calls to fetch(), markAsX, or fetchNextPage will update the state accordingly.

Properties

#
itemsFeedItem[]

An ordered list of feed items to be rendered.

pageInfoPageInfo

The page info of the last successful fetch.

metadataFeedMetadata

The current feed metadata including unread, unseen, read, and total counts of items in the feed.

loadingboolean

Whether or not the feed is currently loading.

networkStatusNetworkStatus

Represents the various network states the feed can be in, including differentiating between 'fetching more' and 'fetching'.