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.pop({refresh:{update:true}) The current page will be overloaded #2850

Closed
ShawSmall opened this issue Feb 1, 2018 · 1 comment
Closed

Comments

@ShawSmall
Copy link

ShawSmall commented Feb 1, 2018

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0
  • react-native v0.44.3

Expected behaviour

Actions.pop({refresh: {update: new Date()}})
The current page will not be overloaded

Actual behaviour

Actions.pop({refresh: {update: new Date()}})
The current page will be overloaded

Steps to reproduce

For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.
1.Actions.a()
2.Actions.b()
3.Actions.pop({refresh: {update: new Date()}}) The current page b will be overloaded

@ShawSmall ShawSmall changed the title Actions.pop({refresh:{update:true}) The current page will not be overloaded Actions.pop({refresh:{update:true}) The current page will be overloaded Feb 2, 2018
@ShawSmall
Copy link
Author

ShawSmall commented Feb 2, 2018

//navigationStore.js
this.refresh = function (data) {
InteractionManager.runAfterInteractions(() => {
var key = (0, _State.getActiveState)(_this2._state).key;
var params = filterParam(data);
_this2.dispatch(_reactNavigation.NavigationActions.setParams({key: key, params: params}));
})
};
can solve the problem

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

No branches or pull requests

1 participant