Skip to content

API to work with Redux-like app and Immutable state #4

Open
@kadmil

Description

@kadmil

Why client is restricted to mutation client.getData()-returned object? I'm working on Redux-based React app, and would like to use something like

client.sync = function(data) {
    Object.assign(this.doc.localCopy, data || {} );
    this.schedule();
}

What am I missing? Is there any dragons this road? Tried this in my app, don't see any problems.

https://github.com/kadmil/diffsync/blob/master/src/client.js#L122

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions