T
TanStack•3y ago
foreign-sapphire

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
relaxed-coral•3y ago
what's realm?
like-gold
like-gold•3y ago
local database
relaxed-coral
relaxed-coral•3y ago
ok
foreign-sapphire
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
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
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 āš”ļø

Did you find this page helpful?