Skip to content
This repository has been archived by the owner on Aug 25, 2018. It is now read-only.

Clever way to check for sync-status #159

Open
FlxAlbroscheit opened this issue Mar 7, 2017 · 0 comments
Open

Clever way to check for sync-status #159

FlxAlbroscheit opened this issue Mar 7, 2017 · 0 comments

Comments

@FlxAlbroscheit
Copy link

This may be more a question than a feature request, but:
I shortly realized that this plugin automatically adds an ID (similar to "-KecHZh3...") to new models, so certain backbone-methods (such as model.isNew) may won't work anymore... Is there a clever, more native way to check whether a model/Firebase-collection has already been synchronized, such as model.synced()?! As of now you could reach such functionality by e.g. hooking into the sync-function, but that's not the best solution in terms of performance because changing a model's (pseudo-)attribute (like "synced") from false to true will result in another request... Any ideas, plans?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant