Skip to content

fix: Store dismissedBanner key in localStorage #5388

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 6 commits into from
Dec 12, 2022

Conversation

Kira-Pilot
Copy link
Member

Previously, we didn't cache any indicator that a user had dismissed the updateCheckBanner, meaning that if said user refreshed the page, the banner would reappear.

Now we save their dismissal in localStorage. I chose localStorage over session because it's longer-lived, but let me know if you feel like that's too much persistence.

@Kira-Pilot Kira-Pilot requested a review from a team as a code owner December 12, 2022 19:31
@Kira-Pilot Kira-Pilot requested review from jsjoeio and removed request for a team December 12, 2022 19:31
@Kira-Pilot Kira-Pilot requested review from mafredri and BrunoQuaresma and removed request for jsjoeio December 12, 2022 19:43
Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

Nice!

@Kira-Pilot Kira-Pilot merged commit a071bfa into main Dec 12, 2022
@Kira-Pilot Kira-Pilot deleted the store-dismiss-banner-state/kira-pilot branch December 12, 2022 21:17
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants