Elad Efrat

Results 48 comments of Elad Efrat

+1. I believe this whole aspect requires auditing and possibly polishing up. I'd like to be able to force `remote`/`local` on individual requests, and I'd like to be able to...

Hello, I don't mean to interrupt, but I would just like to add that I find the above a bit too complex. I don't think there's a way I could...

I agree, and unless someone comes up with a use case for non-dirty local records, I don't think such a mode should be supported. As for naming, I like `offline`...

The offline status codes aren't limited, you can change them - see "Offline state detection" in the README. I'm not sure what you're trying to do, but I believe if...

@nilbus - that was my intuition, that an array makes sense for default and initialization and a function makes sense when it returns a boolean. But like I said at...

Can't you use `dirtyModels()` for that instead of directly accessing localStorage?

I'm not convinced this is a problem/missing feature in DualStorage, and (at least at the moment) I think it would be wrong to add a "global sync" option or expose...

Correct me if I'm wrong, but what you want to do is synchronize data that is in localStorage (saved by DualStorage while the app was offline) that you no longer...

Why can't you examine `options.dirty` in the success callback and if it's `true` keep a reference to it for when you regain connectivity, and then synchronize?

Under the current design, dirty objects are only being tracked in localStorage when they are attached to a collection instance. They are read from localStorage only when a new `Store`...