Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion client-sdks/frameworks/expo-go-support.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Expo Go is a sandbox environment that allows you to quickly test your applicatio
<Warning>
This package is in an **alpha** release.

**Expo Go Sandbox Environment Only** This adapter is specifically designed for Expo Go and similar JavaScript-only environments. It will be much slower than native database adapters and has limitations. Every write operation triggers a complete rewrite of the entire database file to persistent storage, not just the changed data. In addition to the performance overheads, this adapter doesn't provide any of the SQLite consistency guarantees - you may end up with missing data or a corrupted database file if the app is killed while writing to the database file.
**Expo Go Sandbox Environment Only** This adapter is specifically designed for Expo Go and similar JavaScript-only environments. It will be much slower than native database adapters and doesn't support persistence reliably.
Comment thread
benitav marked this conversation as resolved.
</Warning>

## Usage
Expand Down Expand Up @@ -115,6 +115,14 @@ After adding PowerSync to your app:

## Data Persistence

<Warning>
Support for persistence with `@powersync/adapter-sql-js` is deprecated. The reason is that the implementation is inefficient,
doesn't provide consistency guarantees expected from SQLite, and writes are skipped as long as the database is connected.

If you need persisted data across app restarts, use the [recommended setup](/client-sdks/reference/react-native-and-expo#installation)
with a local app build instead of Expo Go.
</Warning>

The default version of this adapter uses in-memory persistence, but you can specify your own `persister` option to the open factory. See an example in the package [README](https://www.npmjs.com/package/@powersync/adapter-sql-js).

## Moving Beyond Expo Go
Expand Down
Loading