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: wrap instances of framentManager.commit (or use commitAllowingStateLoss) #933

Merged
merged 3 commits into from
May 10, 2022

Conversation

charliecruzan-stripe
Copy link
Collaborator

Summary

To avoid the crash detailed in #887, we can move the "optional" commits over to commitAllowingStateLoss, since it's not really a terrible event if those two commits are lost, they're essentially cleanup.

The other instances are all in exposed React methods, so if we encounter this error we should resolve the promise with an error, and then the user can handle that as they wish (AKA retry)

Motivation

fixes #887

Testing

  • I tested this manually
  • I added automated tests

Documentation

Select one:

  • I have added relevant documentation for my changes.
  • This PR does not result in any developer-facing changes.

@charliecruzan-stripe charliecruzan-stripe merged commit 074dd86 into master May 10, 2022
@charliecruzan-stripe charliecruzan-stripe deleted the charliecruzan-fix-887 branch May 10, 2022 15:20
igorgrubikj-metergram added a commit to igor-tiptapp/stripe-react-native that referenced this pull request Jun 5, 2023
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.

Android Crash: Can not perform this action after onSaveInstanceState
2 participants