How to create custom persister using realm ?
I'm replacing the redux/redux-offline/redux-persist with react-query in my react native app to manage serve side data. Since we are currently using Realm to offline first implementation, though we do have createAsyncStoragePersister but is it possible to create custom persister using realm ?
6 Replies
relaxed-coralā¢3y ago
what's realm?
like-goldā¢3y ago
local database
relaxed-coralā¢3y ago
ok
foreign-sapphireOPā¢3y ago
@TkDodo š® @Maintainer - Query @Sloy Thanks for checking it. so, do you think i should able to create the custom persister using the
PersistedClient, Persister or using the asynstorage persister should be good enough for saving offline mutation since i'm expecting to have multiple mutation request with large data in the database.like-goldā¢3y ago
Iām not sure with web for mobile react native you can check watermelondb to sync your data with backend and support offline first
like-goldā¢3y ago
GitHub
GitHub - Nozbe/WatermelonDB: š Reactive & asynchronous database for...
š Reactive & asynchronous database for powerful React and React Native apps ā”ļø - GitHub - Nozbe/WatermelonDB: š Reactive & asynchronous database for powerful React and React Native apps ā”ļø