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

Ionic Demo is missing #1549

Closed
Imaginativeone opened this issue Aug 21, 2024 · 2 comments
Closed

Ionic Demo is missing #1549

Imaginativeone opened this issue Aug 21, 2024 · 2 comments

Comments

@Imaginativeone
Copy link

When will it be back?

@balegas
Copy link
Contributor

balegas commented Aug 21, 2024

Hei, we don’t have plans to bring the old ionic example back. Electric works out-of-the-box with Ionic. Just install the typescript client and sync some data. You can also try the react-hook of you ‘re using react in your app.

@osdiab
Copy link

osdiab commented Jan 7, 2025

Hi, the old ionic demo has a snippet where it actually uses the Capacitor SQLite plugin to store data locally rather than using IndexedDB (via PGLite) like the existing examples work:

https://github.com/electric-sql/electric-old/blob/b4da7af0e45ed7c34a5069640922ab8acca389bd/examples/ionic-demo/src/electric.tsx#L65

Is that something that is not encouraged/possible anymore? I ask since Capacitor docs specifically talk about how you ought not use IndexedDB for persisting data, so would the impact of this potentially be that the local store can get nuked and force resyncs when that happens?

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

4 participants