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

Actions.popTo('home',{'name':'1'})cannot trigger componentWillReceiveProps #2669

Closed
jeffy7 opened this issue Dec 1, 2017 · 3 comments
Closed

Comments

@jeffy7
Copy link

jeffy7 commented Dec 1, 2017

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0-beta.24
  • react-native v0.50.3

Expected behaviour

1.home->A->B ,B call Actions.popTo('home',{'name':'1'}),at scene home ,method componentWillReceiveProps will work

Actual behaviour

1.home->A->B ,B call Actions.popTo('home',{'name':'1'}),at scene home ,method componentWillReceiveProps doesn't work
2.but at B call Actions.pop({'name':'1'}) ,it pop to A, componentWillReceiveProps work,
3.at B sence,Actions.pop({popNum:2}),it pop to A ,doesn't popTo home.

Steps to reproduce

For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.
1.I from scene home to scene A,then sceneA to scene B
2.at scene B I call Actions.popTo('home',{'name':'1'})
3.it back to scene home ,but did't call componentWillReceiveProps

maybe i used wrong method,Ineed home->A->B ,and ,Back to home ,and at scene home i can do something .

thx!

@luco
Copy link
Contributor

luco commented Jan 2, 2018

+1

@aksonov
Copy link
Owner

aksonov commented Jan 4, 2018

It is not yet supported, PR is welcome!

@aksonov
Copy link
Owner

aksonov commented Jan 4, 2018

Duplicate of #2621

@aksonov aksonov marked this as a duplicate of #2621 Jan 4, 2018
@aksonov aksonov closed this as completed Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants