Actions.pop(refresh: { }) cannot trigger componentWillReceiveProps at children scene
See original GitHub issueVersion
“react-native-router-flux”: “4.0.5”, “react-native”: “^0.56.0”, “react”: “^16.4.1”
Expected behaviour
Actions.pop({refresh:{}}) would trigger componentWillReceiveProps at Drawer scene The children scene should also trigger componentWillReceiveProps.
Actual behaviour
Actions.pop({refresh:{}}) would trigger componentWillReceiveProps at Drawer scene but not children scene.
Steps to reproduce
- Wrap scenes in parent scene or Drawer.
- Use Actions.sceneKey to go from one scene to another.
- Use Actions.pop({refresh:{}});
- View returns to previous scene. componentWillReceiveProps() calls on Drawer, but not calls on children scene.
Reproducible Demo
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Actions.pop(refresh: { }) cannot trigger ... - GitHub
Actions.pop(refresh: { }) would trigger componentWillReceiveProps at parent scene but not children scene. Since my tab view is put under ...
Read more >react-native-router-flux : No React lifecycle method is getting ...
pop() is called with no arguments. In order to refresh Page 1, you need to override the functionality of your back button and...
Read more >Source - GitHub
Scenename cause render multiple time and cause getWrappedInstance return ... Actions.pop\(refresh: { }\) cannot trigger componentWillReceiveProps at ...
Read more >react-native-router-flux/CHANGELOG.md - UNPKG
465, - problem with Actions.pop ,, send me to initial Scene ... 1249, - Actions.pop\(refresh: { }\) cannot trigger componentWillReceiveProps at children ......
Read more >react-native-router-flux - npm
go back (i.e. pop the current screen off the nav stack). Actions.pop(). // refresh the current Scene with the specified props.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Actions.pop({refresh: {}, timeout: 1})
可以 加个时间戳 Actions.pop({refresh:{date:new Date()}); 就可解决。