Building offline first app with ability to sync data in 2024

I would recommend keeping two separate realms, one for synced data and one for unsynced data. I’d imagine that if a user logs out, they can’t interact with their data at all.

Our users who implement a “free locally, paid sync” model do roughly what you’re describing - write the data to an unsynced realm to begin with, and then copy it over to a synced realm when the user upgrades