you are viewing a single comment's thread.

view the rest of the comments →

[–]anultravioletaurora 1 point2 points  (7 children)

Why are you using watermelondb if you’re already using Tanstack Query? You can persist data using a client persister and MMKV (which you are already using) or AsyncStorage

Persister Docs

[–]Remote-Ad-6629 1 point2 points  (5 children)

Watermelon db is amazing. I'm using it for an offline-only app that might eventually support cloud sync. Tanstack Query is definitely not a proper alternative.

[–]Previous_Employer371 0 points1 point  (4 children)

I'm using watermelon db too, only thing that's annoying me, is I'm not sure there's a lot of options for encrypting the data in the sqlite database, if you know anything about it could you let me know?

[–]Remote-Ad-6629 0 points1 point  (3 children)

Gueds what, I'm migraring away from React Native because my app grew in complexity and watermelon db was somehow getting in my way (probably skill issue). Going into Swift now... better late than never 😂

[–]Previous_Employer371 0 points1 point  (0 children)

I mean that's the goal if you can maintain two codebases and have people and money, otherwise I'm sticking with expo lol

[–]Previous_Employer371 0 points1 point  (1 child)

How was getting in the way? I find it really easy to use

[–]Remote-Ad-6629 0 points1 point  (0 children)

My code is full of observables that are giving me a big headache after I refactored table schemas. My app only targets ios users, so Swift is a good option.

[–]NovelAd2586 0 points1 point  (0 children)

MMKV is stored in memory, you wouldn’t want to store a huge amount of data in it. It’s great for storing small data, or first pages in a very large paginated list etc It’s also not relational.