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 does disposing Pages work? #9

Open
aytunch opened this issue Apr 3, 2020 · 5 comments
Open

How does disposing Pages work? #9

aytunch opened this issue Apr 3, 2020 · 5 comments

Comments

@aytunch
Copy link

aytunch commented Apr 3, 2020

Let's say we have preloadPagesCount = 2

We are at Page 0 so Page 0 and Page 1 are already preloaded.
User swipes to Page 1 and Page 2 automatically gets preloaded.

My question is does page 0 gets disposed at this time? I think it does not since, user can swipe left to Page 0. So when does Page 0 gets disposed? Or is disposing not being handled by this package?

I want to use this package with videos just like the majority of this awesome packages users. So disposing videos is very important in terms of performance and memory.

Please clarify the inner workings of disposing and creation of Pages

@octomato
Copy link
Owner

octomato commented Jun 9, 2020

Hey @aytunch , thanks for use my widget. I'll check your question, if need I'll create a new release for this widget.

@AbhishekDoshi26
Copy link

@octomato Same thing happening in my case too. There's no way dispose is being called when the user switches the page.

@ah89
Copy link

ah89 commented Jan 25, 2023

The same happening to me

@edwinmrb
Copy link

Is there a solution for the dispose?

@jtfahad
Copy link

jtfahad commented Dec 14, 2023

Also waiting for the solution

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

6 participants