docs: Expo: mention of PGLite issue unclear
As someone not familiar with the internals of ElectricSQL, it's really unclear what this means:
https://github.com/electric-sql/electric/blob/68ba7ed93495990df1e3b413fd7c4ebb2bae33a8/website/docs/integrations/expo.md?plain=1#L67-L71
Does this mean it just falls back to SQLite, or that we don't get any offline capabilities?
cc @thruflo as the original author of that section
PGlite doesn't yet work on RN. There's no explicit fallback because Electric isn't tied to a particular client. You could choose to sync into expo-sqlite, or just in memory, or into TanStack DB, etc.
Are there examples of using a custom local persistence then? It's unclear still to me how much this would limit me in using electric in Expo
This is an example using a Valtio store persisted to localStorage https://github.com/electric-sql/electric/tree/main/examples/write-patterns/patterns/3-shared-persistent
https://livestore.dev is a great SQLite based option that works with Electric and React Native.
Thanks, very much appreciated! Might be worth adding these to the docs, too