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

What is the easiest way to clear state? #225

Open
ghost opened this issue Nov 22, 2017 · 2 comments
Open

What is the easiest way to clear state? #225

ghost opened this issue Nov 22, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 22, 2017

Silly question, but when you change just about anything in the sample, e.g. the name of the key for one of your navigation screens, the app won't run anymore (red screen) because the navigator is reading a state value from the store that the app does not understand.

Given the app doesn't run in this state, you can't use the developer menu Clear State function, so what is the simple trick for quickly clearing state in this case?

I've been renaming the APP_STORAGE_KEY to force a new initial state, but I must be missing a simple trick you all must be using.

@lucidlemon
Copy link

Glad I am not the only one experiencing this, especially with the Navigation structure - this might get really tricky with app Updates. Did you find any solution for this?

@lucidlemon
Copy link

At least the action RESET_STATE does exactly what we need. But I guess we need to hook this into the navigation state so that it dispatches this action in case it would fail otherwise.

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