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

pop and refresh problem in a async function #3221

Closed
2linziyi2 opened this issue Aug 28, 2018 · 2 comments
Closed

pop and refresh problem in a async function #3221

2linziyi2 opened this issue Aug 28, 2018 · 2 comments
Labels

Comments

@2linziyi2
Copy link

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0-beta.25 (v3 is not supported)
  • react-native v0.53.3

Expected behaviour

Scene A -> Scene B, Scene B pop by a function. As follows

test() {
  Promise.resolve(true).then(result => {
     Actions.pop();
     Actions.refresh({timestamp: new Date().getTime()})
  })
}

Only Scene A tigger componetWillReceiveProps

Actual behaviour

Actions.refresh function will refresh Scene A and Scene B, and Scene A tigger componetWillReceiveProps,Scene B tigger constructor to componentWillUnmount

Steps to reproduce

For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.

  1. Scene A -> Scene B
  2. pop and refresh in a async function
@daviscabral
Copy link
Collaborator

Can you update to a more recent version?

I am still waiting further discussion on #3213 - until there, I don't think beta version should be supported.

@daviscabral
Copy link
Collaborator

Closing due inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants