▲ | isaachinman 4 days ago | |||||||
Yes, Replicache works beautifully on our mobile/native targets. The constructor allows you to pass in any arbitrary KVStore provider, and we happen to use op-sqlite as its performance is exceptional. There is no "different data layer" per se, just a different storage mechanism. Replicache also holds a mem cache that is limited to ~50MB if I recall. Our use case is extremely data-heavy, so we might end up never migrating to Zero – who knows. Perhaps I misunderstood your question, let me know if I can clarify further. | ||||||||
▲ | jitl 4 days ago | parent [-] | |||||||
Ah, I understood "native application in some targets" to mean you're writing application code in languages other than JavaScript/TypeScript; not that sometimes you're React Native and sometimes you're Web/DOM but you're always TypeScript. Notion always* has a webview component, even in native apps, but we also have a substantial amount of "true native" Swift/Kotlin. We can't use Replicache/Zero today because our native code and our webview share the SQLite database and both need to be able to read and write the data there; if we use Replicache that would make our persisted data opaque bytes to Swift/Kotlin. *There's many screens of the Android/iOS app that are entirely native but the editor will probably remain a webview for a while yet. | ||||||||
|