Skip to content

Conversation

@cead22
Copy link
Contributor

@cead22 cead22 commented Aug 19, 2020

  • Fixes the offline problem, which is, when you turn off wifi, requests start failing, but then a TON of them fire off and fail, like hundreds
  • I noticed that the request that get multiplied were simply command=Get with no params which is the one we use to check if we're online (via xhr, not pusher)
  • Adding doNotRetry: true should fix that
  • I also noticed that we added Ion.merge(IONKEYS.NETWORK, {isOffline: true}); in the catch block of xhr but didn't add the one in this PR

Note: I couldn't repro on dev, hence the HOLD

And update online status in Ion when request succeeds
@cead22 cead22 self-assigned this Aug 19, 2020
Copy link
Contributor

@tgolen tgolen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes make sense 👍

@tgolen tgolen changed the title [HOLD] Don't retry request to check online status and update online status in Ion when request succeeds Don't retry request to check online status and update online status in Ion when request succeeds Aug 19, 2020
@tgolen tgolen merged commit 4cd0e40 into master Aug 19, 2020
@tgolen tgolen deleted the carlos-retry branch August 19, 2020 16:16
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

Successfully merging this pull request may close these issues.

3 participants