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 support to cancel SDK network requests #21

Open
bmilekic opened this issue Dec 2, 2020 · 0 comments
Open

Add support to cancel SDK network requests #21

bmilekic opened this issue Dec 2, 2020 · 0 comments

Comments

@bmilekic
Copy link
Member

bmilekic commented Dec 2, 2020

Consider the following scenario:

  • targeting() being called by app developer, to update local targeting data cache every time the app is foregrounded
  • user rapidly backgrounds-foregrounds the app
  • currently, this results in several network requests being sent to backend

A mitigation could be that any pending targeting request is cancelled prior to a new one being dispatched.

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

1 participant