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

Add Infinite Cards Example #95

Open
mac-gallagher opened this issue Jul 8, 2020 · 7 comments
Open

Add Infinite Cards Example #95

mac-gallagher opened this issue Jul 8, 2020 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@mac-gallagher
Copy link
Owner

Possible starting on version 3.0.1

@mac-gallagher mac-gallagher added the enhancement New feature or request label Jul 8, 2020
@mac-gallagher mac-gallagher self-assigned this Jul 8, 2020
@sharadchauhan0504
Copy link
Contributor

sharadchauhan0504 commented Aug 19, 2020

Hi, any update on this enhancement? Or a way around start over card swiping like a circular loop?
Thank you for providing this library.

@mac-gallagher
Copy link
Owner Author

@SKDEVIL see my answer here #59 (comment)

@sharadchauhan0504
Copy link
Contributor

@mac-gallagher Thanks, got it. Though after swiping all cards, if I reload it starts from the beginning, I can use that, looks a bit glitchy, as the view are removed and added again, but that will do for now. Thank you.

@mac-gallagher
Copy link
Owner Author

Have you tried the appendCards method? You should only reload data if you want to start over and clear your swipe history

@sharadchauhan0504
Copy link
Contributor

sharadchauhan0504 commented Aug 20, 2020

Yes, I have two requirements:

  1. Load cards via a paginated API call
  2. Once all data is loaded and you are on the last card, it should start over again.

So if I have 500 cards initially, I can append those 500 data elements again, but if I keep doing this, there will be performance issues right, as you maintain an array? For now, I won't be using undo or swipe back operation.
Please let me know if I am wrong.

@mac-gallagher
Copy link
Owner Author

I would not add all 500 at once, but even so, it should be no problem for the library. It just maintains an array of integers

@sharadchauhan0504
Copy link
Contributor

Great! Will use appendCards then, but of course, appending the same data in chunk.

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

No branches or pull requests

2 participants