Skip to content

[2.0] Changes not tracked in browserified models #305

Closed

Description

@ritch

See https://github.com/kraman/blog

I'm pretty sure this isn't specific to the setup of this app beyond a missing trackChanges: true for the LocalTodo model.

/cc @bajtos

Activity

  1. self-assigned this
    on Jun 5, 2014
  2. added this to the milestone on Jun 6, 2014
  3. bajtos commented on Jun 6, 2014

    @bajtos
    Member

    Can the problem be caused by Model.rectifyAllChanges being run on the server only?

    if(loopback.isServer) {
    // initial cleanup
    cleanup();
    // cleanup
    setInterval(cleanup, cleanupInterval);
    function cleanup() {
    Model.rectifyAllChanges(function(err) {
    if(err) {
    console.error(Model.modelName + ' Change Cleanup Error:');
    console.error(err);
    }
    });
    }
    }
    }

  4. ritch commented on Jun 6, 2014

    @ritch
    MemberAuthor

    @bajtos no. rectifyChange() is not creating an entry in the change list. The LocalTodo.Change model must not be setup correctly.

  5. modified the milestone: #Rel lb 2.0.0 on Sep 30, 2014
  6. bajtos commented on Apr 7, 2016

    @bajtos
    Member

    Since nobody else has run into this issue, I am closing it. @ritch @kraman feel free to reopen if you think it's still valid and relevant.

  7. changed the title [-][2.0] Changes not tracked in browserified models [/-] [+][2.0] Changes not tracked in browserified models[/+] on Apr 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions