BookmarkIdsStore

class BookmarkIdsStore(postsApi: PostsApi)

Holds the logged-in user's bookmarked post IDs so the (fully anonymous) feed endpoint never needs to know about auth — PostsRepositoryImpl stamps isBookmarked onto feed items by checking this set client-side. Only the first page is fetched for the ID set (a few thousand bookmarks would need real accumulation across pages; treated as an edge case to revisit, not a blocker).

Constructors

Link copied to clipboard
constructor(postsApi: PostsApi)

Properties

Link copied to clipboard
val ids: StateFlow<Set<String>>

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
fun markBookmarked(postId: String)
Link copied to clipboard
Link copied to clipboard
suspend fun refresh()