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

Reset parameters of a scene #3125

Closed
Sharcoux opened this issue Jul 12, 2018 · 1 comment
Closed

Reset parameters of a scene #3125

Sharcoux opened this issue Jul 12, 2018 · 1 comment

Comments

@Sharcoux
Copy link

Version

Tell us which versions you are using:

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

Expected behaviour

Actions.replace('myScene',{}) or Actions.myScene('myScene') should clear previous parameters of the scene

Actual behaviour

Actions.myScene(oldParams);
Actions.replace('myScene',{});
//-> oldParams are still available here

Steps to reproduce

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

  1. Create a scene and log its parameters
  2. Actions.myScene({test: 'test'});
  3. Actions.replace('myScene',{});
@aksonov
Copy link
Owner

aksonov commented Aug 8, 2018

It is not supported. Please override needed parameters with new values.

@aksonov aksonov closed this as completed Aug 8, 2018
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

2 participants