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

Clever way to check for sync-status #159

@FlxSaenger

Description

@FlxSaenger

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions