Skip to content

Conversation

khrizt
Copy link

@khrizt khrizt commented Jul 4, 2018

Changing the order of this calls avoids the fact that the isShow can be true after calling handleCancel.

I realized of this using this library on a react-native project, btw this library works with NativeRouter too, and using Alert.alert to show the confirmation dialog to the user. The isShow prop and the original call order made it appear 2 times.

@xJkit
Copy link
Owner

xJkit commented Jul 11, 2018

Sorry, @khrizt, something happened by the way, and this PR has been merged into the code base.

I revert the "revert" process, so everything works just fine now. My apologies.

@khrizt
Copy link
Author

khrizt commented Jul 16, 2018

Perfect, thanks!

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.

2 participants