Skip to content

refactor: add the taskQueue in InteractionManager like react-native #2399

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

Closed
1 task done
ntdiary opened this issue Sep 30, 2022 · 1 comment
Closed
1 task done

refactor: add the taskQueue in InteractionManager like react-native #2399

ntdiary opened this issue Sep 30, 2022 · 1 comment
Labels
enhancement Requires extension or creation of new React Native API

Comments

@ntdiary
Copy link
Contributor

ntdiary commented Sep 30, 2022

Is there an existing request?

  • I have searched for this request

Describe the feature request

In the react-native documentation :

InteractionManager.runAfterInteractions() is not working properly on web. It triggers immediately without waiting until the interaction is finished.

example:
In react-navigation,
we want a task to be deferred until the navigation animation ends. (after clearInteractionHandle is called)
Actually since the browser may be idle, it will be executed before clearInteractionHandle is called. (requestIdleCallback)

Can we submit a PR to migrate this feature? 🙂

@necolas
Copy link
Owner

necolas commented Oct 27, 2022

Can we submit a PR to migrate this feature?

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requires extension or creation of new React Native API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants