Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement useFeed({accountPosts: AccountPostsOptions}) #26

Open
estebanabaroa opened this issue Nov 13, 2024 · 0 comments
Open

implement useFeed({accountPosts: AccountPostsOptions}) #26

estebanabaroa opened this issue Nov 13, 2024 · 0 comments

Comments

@estebanabaroa
Copy link
Member

AccountPostsOptions could be something like

{
  limit: number // limit to x newest posts
  append?: boolean // default false, because most likely the user will want to prepend
  newerThan?: number // seconds, don't append posts older than x time
}

we actually probably don't care about displacing the feed when prepending, because most UIs will use a dedicated page to post, so the feed wont be loaded, and those who use a modal to publish can use append:true to append instead.

one issue to think about is what to do if the user's post appears again in a feed, do we repeat it? maybe that should be an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant