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

fix: check for localStorage support only once #32

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

IanVS
Copy link
Contributor

@IanVS IanVS commented Jun 11, 2024

Fixes #31

This moves the check for localStorage support from each hydrate / persist call to instead happen only once when the module is imported.

Note: It might be nice to add a Contributing.md or a note in the readme about formatting of commit messages, since there's a pre-commit lint set up. LMK if I didn't pick the right option (I'm not so familiar with those conventions).

Copy link
Member

@kettanaito kettanaito left a comment

Choose a reason for hiding this comment

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

Looks great to me! 🚀

@kettanaito
Copy link
Member

note in the readme about formatting of commit messages

I believe if you run git commit you will get an interactive prompt to choose the commit type and provide the message. I will keep this in mind!

@kettanaito kettanaito merged commit 590deee into mswjs:main Jun 13, 2024
2 checks passed
@kettanaito
Copy link
Member

Released: v1.1.1 🎉

This has been released in v1.1.1!

Make sure to always update to the latest version (npm i @mswjs/cookies@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.

@IanVS IanVS deleted the check-localstorage-once branch June 13, 2024 14:00
Copy link

@Ninemillimetermel Ninemillimetermel left a comment

Choose a reason for hiding this comment

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

Why was there a storage initially changed to begin with

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.

Consider only checking for persistency once?
3 participants