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

Feature: Dynamic storage target #78

Open
stevehaneytrailblazer opened this issue Oct 21, 2022 · 1 comment
Open

Feature: Dynamic storage target #78

stevehaneytrailblazer opened this issue Oct 21, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@stevehaneytrailblazer
Copy link

I'm submitting a...


[x] Other... Please describe:

Current behavior

Currently you have to decide overall what the storage pattern will be (whether memory, local storage, custom, etc...)

Possible behavior?

I was curious if anyone has asked for the ability to pass a storage parameter in the withContext so you could declare a storage target specific to different API calls.

The reason I bring this up is that there might be some non sensitive API calls that return application configuration that would be a good candidate for localStorage where I get the benefit of multiple browser tabs sharing that information. Whereas I might have some other data I'd like to cache in the browser but just inMemory that I wouldn't want to leave in localStorage.

Perhaps the answer would be to write a custom storage provider but I was just curious if anyone had asked for something like this or if there's a strong reason why its very difficult or not a good idea.

Great library btw. Thanks for your time!

@NetanelBasal
Copy link
Member

You're welcome to submit a PR with this feature.

@NetanelBasal NetanelBasal added the enhancement New feature or request label Oct 22, 2022
@NetanelBasal NetanelBasal changed the title Question re: dynamic storage target Feature: Dynamic storage target Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants