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

how to reset history? #109

Closed
dhcmega opened this issue Mar 7, 2023 · 2 comments
Closed

how to reset history? #109

dhcmega opened this issue Mar 7, 2023 · 2 comments

Comments

@dhcmega
Copy link

dhcmega commented Mar 7, 2023

Hi!
When a user logs out, how can I reset history so it's not possible to go back to the home screen?
Thanks!

dhcmega

@salvoravida
Copy link
Owner

You should handle your home screen route with a isLogged check, and then redirect to /login if not.

@dhcmega
Copy link
Author

dhcmega commented Mar 10, 2023

Hi @salvoravida thanks for responding.

The logout case was just an example.
I have a few cases in which I want to reset the history. For example when the user finishes a wizard that has steps.
I'm coming from connected-react-router which has a reset method. Do we have something similar?

Thanks again.

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