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

How to use page$ #47

Open
santekotturi opened this issue Nov 23, 2021 · 6 comments
Open

How to use page$ #47

santekotturi opened this issue Nov 23, 2021 · 6 comments

Comments

@santekotturi
Copy link

Are there docs for how to implement pagination? I looked through the src and am just confused about how to update the pagination cursor.

This post seems to re-implement pagination using this plugin in its own way: https://sanchezcarlosjr.medium.com/paginate-data-with-query-cursors-from-firestore-and-angular-3ba7854afa67

@joaqcid
Copy link
Member

joaqcid commented Nov 24, 2021

hi @skotturi

the library does have a page$method, but its not very clean the way it works, and that's why i havent added to the docs

im working on introducing a cleaner way to use paged queries with the plugin, but still not quite there to release it

for now, you'll need to create some ad-hoc solution such the one you mentioned or perhaps even do it outside the plugin connect method

@joaqcid
Copy link
Member

joaqcid commented Feb 2, 2022

hi @skotturi

i released a first version to use paging in the plugin, its the simplest approach to start with, would love your feedback of it!

https://github.com/ngxs-labs/firestore-plugin#paging

@santekotturi
Copy link
Author

Hey @joaqcid looking forward to testing this! I've been building out a ton of new features recently but looking forward to implementing and giving feedback on this

@joaqcid
Copy link
Member

joaqcid commented Mar 26, 2023

@skotturi have you tried the paging functionality? https://github.com/ngxs-labs/firestore-plugin#paging

@mihajlosavkic
Copy link

Hi @joaqcid
Is there an example on how to use the GetNextPage that is mentioned in the article above, I can't get my head around this, and this is the only bit I am missing now?

@joaqcid
Copy link
Member

joaqcid commented Sep 9, 2023

@mihajlosavkic you can see an exmaple here, or you can check the example in the code repo

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

3 participants