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

Add indexedDbKeyValueStore to @effect/platform-browser #2647

Open
mattiamanzati opened this issue Apr 28, 2024 · 3 comments
Open

Add indexedDbKeyValueStore to @effect/platform-browser #2647

mattiamanzati opened this issue Apr 28, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@mattiamanzati
Copy link
Contributor

What is the problem this feature would solve?

Right now the platform-browser packages exposes session storage and local storage.
Unfortunately those seems not to be an option while running inside a webworker or a sharedworker.

What is the feature you are proposing to solve the problem?

We could support indexeddb which is available both in a UI tab, and in a webworker context.

What alternatives have you considered?

No response

@mattiamanzati mattiamanzati added the enhancement New feature or request label Apr 28, 2024
@jessekelly881
Copy link
Contributor

jessekelly881 commented Apr 29, 2024

I have an implementation of this here if you're interested https://github.com/jessekelly881/effect-idb. I could probably create a PR to add this to the /platform package.

@schickling
Copy link

Would be super useful. Maybe @myobie could take a look at the eventual PR as well, as he knows all the nuances and pitfalls related to IDB so we make sure to not wrap it in a leaky way.

@jessekelly881
Copy link
Contributor

jessekelly881 commented Apr 30, 2024

+1 would be helpful. My wrapper is basically just duct tape and hope lol.

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

3 participants