Skip to content

Use window.location on logout success #63

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

Merged
merged 2 commits into from
Jan 2, 2020
Merged

Conversation

derick-montague
Copy link
Collaborator

Redirecting the user on logout will clear the application state

@derick-montague derick-montague self-assigned this Dec 23, 2019
- Redirecting the user on logout will clear the application state
- Moved the window.location call to the logout action
Copy link
Collaborator

@yoshiemuranaka yoshiemuranaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me it looks like manually setting the window location is forcing a browser refresh, which is clearing the store state, but I'm not understanding why we are setting the location to /logout instead of just refreshing, especially since it isn't a defined route in our application.

@yoshiemuranaka yoshiemuranaka self-requested a review December 30, 2019 16:33
@derick-montague derick-montague merged commit b316d0b into master Jan 2, 2020
@derick-montague derick-montague deleted the i-62-reset-state branch January 2, 2020 13:54
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

Successfully merging this pull request may close these issues.

2 participants