Skip to content
This repository was archived by the owner on Dec 26, 2025. It is now read-only.

A proposal for implementing #124#162

Merged
chrissainty merged 9 commits intoBlazored:mainfrom
koskila:feature/124-getkeys
Oct 31, 2021
Merged

A proposal for implementing #124#162
chrissainty merged 9 commits intoBlazored:mainfrom
koskila:feature/124-getkeys

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.

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 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.

2 participants