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

Swappable storage for react-native #165

Open
pax-k opened this issue Aug 7, 2023 · 0 comments
Open

Swappable storage for react-native #165

pax-k opened this issue Aug 7, 2023 · 0 comments

Comments

@pax-k
Copy link

pax-k commented Aug 7, 2023

Web5.connect() cannot be used in react-native because the cache property inside did-resolution-cache.ts defaults to new Level(). Anyway there are other places where Level is used and cannot be swapped.

I have opened a draft PR a while back, Swappable abstract-level storage, that fixes this issue.

Similarly, in the web5-wallet repo, there is an issue, Create a file-based DataStore for mobile's local DWN, that I was able to fix with a lib that we previously developed specifically for react-native storage.

If I bring the swappable draft PR up to date, would you be kind to review and merge it?

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

No branches or pull requests

1 participant