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

App Goes Back To Initial Route On Hot Module Reload #3081

Closed
thecodecafe opened this issue Jun 14, 2018 · 2 comments
Closed

App Goes Back To Initial Route On Hot Module Reload #3081

thecodecafe opened this issue Jun 14, 2018 · 2 comments

Comments

@thecodecafe
Copy link

Version

Tell us which versions you are using:

  • react-native-router-flux v3.43.0
  • react-native v0.55.4

Expected behaviour

Maintain current route after hot module reload occurs.

Actual behaviour

Whenever hot module reload occurs, the app returns to the initial route, this is inconvenient because I have to start navigating all the way deep in to the screen I was on, and in most cases it's just a small change, this makes development very painstaking, is there something I can do about this?

Steps to reproduce

My Router is connected to redux and I used Actions.create(/**/) to create the scenes.

@Blapi
Copy link
Collaborator

Blapi commented Jun 14, 2018

Use the scene you want to test as initial

Your issue is actually not an issue.. it is a common behaviour and it totally makes sense

@Blapi Blapi closed this as completed Jun 14, 2018
@thecodecafe
Copy link
Author

I can't agree that it makes sense, navigating all the way back to the screen you're working on because of a small adjustment you made to it isn't convenient, it kills my vibe when I'm working.

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