Skip to content

always run in transact() mode #105

Open
@aktxyz

Description

I find that I use transact all over the place, and I "thought" I was doing it correctly.

store.something.transact();
store.something.set('a',1);
store.something.set('b',2);

That has been working great ... but not I updated freezerjs to the latest and am getting detach warnings all over.

Looks like I really should be doing ...

date = store.something.transact();
data.set('a',1);
data.set('b',2);

So I actually have 2 questions ...

  1. the way I have been doing seems to work fine, what are the issues with doing it the first way above.

  2. is there a way to put the store into transact() mode globally, to make things a bit cleaner for my scenario.

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