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

Allow Local instances to be cleared without deleting #385

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ababic
Copy link

@ababic ababic commented Apr 20, 2023

Greetings, lovely people!

I'm in the process of using Local in a couple of projects, and recently had a case where I wanted to clear cached values based on certain signals, without deleting the object completely.

I'm sure you'll agree the changes are super simple, but I feel this tiny change brings the API more in-line with other familiar cache options, and may help with adoption.

Thank you for all the wonderful work so far, folks.

@ababic ababic marked this pull request as draft April 20, 2023 11:52
@ababic ababic force-pushed the clearable-locals branch from a81e5c3 to bf84d7b Compare April 20, 2023 12:00
@ababic ababic marked this pull request as ready for review April 20, 2023 12:01
@andrewgodwin
Copy link
Member

I like the idea, but like anything that touches Local, it looks like the tests need a bit more attention!

@ababic
Copy link
Author

ababic commented Apr 26, 2023

Thanks @andrewgodwin. I was previously relying on the CI to see test results, but I'll get things setup here properly and ensure tests are all ship-shape before requesting a review.

@ababic ababic marked this pull request as draft April 26, 2023 10:21
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.

2 participants