Nozbe / WatermelonDB

🍉 Reactive & asynchronous database for powerful React and React Native apps ⚡️
https://watermelondb.dev
MIT License
10.62k stars 600 forks source link

Which tables need to be synchronized? #1194

Open osvaldokalvaitir opened 3 years ago

osvaldokalvaitir commented 3 years ago

I'm using the hasUnsyncedChanges function to check if I have changes to sync, but in my case I need to know which tables they are because I have tables that aren't synced because I use for authentication and others.

Using this way will always return true, would I know which tables need to be synced?

osvaldokalvaitir commented 3 years ago

I analyzed and the problem is that a certain table is not passing the field from 'created' to 'synced'.

That would solve the problem.

It seems that this issue is also happening: https://github.com/Nozbe/WatermelonDB/issues/1126