Closed sirteddi closed 7 months ago
Hey @sirteddi thanks for the contribution. It looks good already, but I think the loading can be improved.
Please use the cursor
option to only fetch the new posts instead of reloading all posts. You can find the Bsky documentation here: https://docs.bsky.app/docs/api/app-bsky-feed-get-author-feed
@Vincenius I now implemented the loading via the cursor option. The new feed is then appended to the load one in the loadFeed function. That way clicking the button just loads new posts, while keeping the old ones. The user also stays where the button was before, so does not have to scroll down again.
Hope it looks, how you wanted it!
Sorry for the delay. It looks good now :) Thanks for your contribution!
Functionality:
CSS of the button is just basic tailwind as I couldn't find a reference on the page, to do it else wise. Also did minor Adjustments to the createEffect() function at the tob of the component, just for readability tho.
Hope it works how you like it :)