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

Warning: No localStorage exists to persist data to! #1398

Open
palmtown opened this issue Feb 3, 2025 · 0 comments
Open

Warning: No localStorage exists to persist data to! #1398

palmtown opened this issue Feb 3, 2025 · 0 comments

Comments

@palmtown
Copy link

palmtown commented Feb 3, 2025

Hello Community,

I am using Gun with react-native as described at https://github.com/amark/gun/wiki/React-Native. However, when I start my app, I get the warning "Warning: No localStorage exists to persist data to!" although I am passing the store as "store: asyncStore({AsyncStorage})"

I checked IGun.d.ts file, and specifically GunOptions in GunOptions.d.ts, and there is no store key. It does list [key: string] as shown in Exhibit 1 below. However, it says it is for 3rd party modules, however, I do not see anything related to store at https://github.com/amark/gun/wiki/Awesome-GUN#plugins--helpers.

Any help/guidance would be greatly appreciated.

Exhibit 1
/** * allows you to pass options to a 3rd party module. Their project README will likely list the exposed options * @see https://github.com/amark/gun/wiki/Modules */ [key: string]: any;

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