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

[Enhancement] - Move localStorage.clear to onLogout prop for LogoutButton #528

Merged
merged 3 commits into from
Nov 17, 2023

Conversation

leekahung
Copy link
Contributor

This PR:

At the moment, the browser still seem to keep the restorePath in localStorage even after logout. This is likely due to the placement of where we trigger localStorage.clear(). To fix this, I've utilized the onLogout prop from <LogoutButton> to run localStorage.clear() for us instead of needing to handle it from the modal.

@leekahung leekahung added the enhancement Enhancement of existing features label Nov 16, 2023
@leekahung leekahung self-assigned this Nov 16, 2023
@leekahung leekahung merged commit 9b3bac8 into Development Nov 17, 2023
@leekahung leekahung deleted the utilize-onLogout-prop branch November 17, 2023 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants