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

fix: prevent multiple calls for onClose event #2072

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wawrow
Copy link

@wawrow wawrow commented Dec 6, 2024

currently _providedOnClose gets called potentially multiple times as this reanimated hook may (and likely will) run multiple times - I believe it should be called only once when changing _animatedIndex to -1 only

Motivation

if you perform some action onCloseit may trigger multiple times.

currently `_providedOnClose` gets called potentially multiple times as this reanimated hook may (and likely will) run multiple times - I believe it should be called only once when changing `_animatedIndex` to `-1` only
@wawrow wawrow changed the title preventing multiple calls for onClose fix: preventing multiple calls for onClose event Dec 11, 2024
@wawrow wawrow changed the title fix: preventing multiple calls for onClose event fix: prevent multiple calls for onClose event Dec 11, 2024
Copy link

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@wawrow
Copy link
Author

wawrow commented Jan 13, 2025

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

I'd rather have that merged; @gorhom can you please help with this?

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

Successfully merging this pull request may close these issues.

1 participant