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

A proposal for implementing #124 #162

Merged
merged 9 commits into from
Oct 31, 2021

Conversation

koskila
Copy link
Contributor

@koskila koskila commented Oct 10, 2021

This seemed like a simple enough ask - it's essentially just a wrapper for Object.keys(localStorage) and for calling localStorage.clear(key) multiple times, but hey, let's call it a quality-of-life upgrade? 😅

@koskila
Copy link
Contributor Author

koskila commented Oct 19, 2021

Let me know @chrissainty if anything else is needed! 👍

@koskila
Copy link
Contributor Author

koskila commented Oct 28, 2021

Anything more I can do, @chrissainty ? 😊

@chrissainty
Copy link
Member

My apologies for the delay on this @koskila.I've been swamped with work stuff. I'm hoping to look at tomorrow

Copy link
Contributor Author

@koskila koskila left a comment

Choose a reason for hiding this comment

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

I ran the tests and was happy not seeing any failed ones - but ignored the fact that my test crashed the whole test run. Yikes.

Fixed that, now I can only see green. 😅

image

Copy link
Member

@chrissainty chrissainty left a comment

Choose a reason for hiding this comment

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

Thank you for your work on this so far @koskila. I do have a few changes, if that's ok. I've left a few suggested changes. Also, I can't see a synchronous version of the new GetKeys method, or an async version of the new RemoveItems method. Could these be added as well please?

The synchronous and asynchronous APIs should be the same.

src/Blazored.LocalStorage/ISyncLocalStorageService.cs Outdated Show resolved Hide resolved
src/Blazored.LocalStorage/BrowserStorageProvider.cs Outdated Show resolved Hide resolved
src/Blazored.LocalStorage/BrowserStorageProvider.cs Outdated Show resolved Hide resolved
koskila and others added 3 commits October 30, 2021 22:15
Co-authored-by: Chris Sainty <chrissainty@users.noreply.github.com>
Co-authored-by: Chris Sainty <chrissainty@users.noreply.github.com>
Copy link
Member

@chrissainty chrissainty left a comment

Choose a reason for hiding this comment

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

Hey @koskila, I might be missing something as I'm reviewing on my phone but is the ISyncLocalStorageSerive exposing all the new methods? Looks the the new Keys method is missing still?

Copy link
Member

@chrissainty chrissainty left a comment

Choose a reason for hiding this comment

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

:shipit: Thanks for this, @koskila! great work

@chrissainty chrissainty merged commit d55a7fc into Blazored:main Oct 31, 2021
@koskila koskila deleted the feature/124-getkeys branch October 31, 2021 20:18
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.

None yet

2 participants