Coder Social home page Coder Social logo

Comments (13)

pepicrft avatar pepicrft commented on June 20, 2024

@foxling are you using CoreData?

from sugarrecord.

foxling avatar foxling commented on June 20, 2024

@pepibumur yes

from sugarrecord.

pepicrft avatar pepicrft commented on June 20, 2024

Are you enabling the autosaving value of DefaultCoreDataStack @foxling ?

from sugarrecord.

foxling avatar foxling commented on June 20, 2024

@pepibumur DefaultCDStack.startObserving() is only call in DefaultCDStack.backgroundContext(), but i'm not use backgroundContext, so the mergeChanges method is never called, the autosaving is not useful.

from sugarrecord.

pepicrft avatar pepicrft commented on June 20, 2024

Why aren't you using the background context? The stack is setup to connect those context with the saving behaviour. @foxling

from sugarrecord.

deivuh avatar deivuh commented on June 20, 2024

I'm also having this issue.

The autosaving value of DefaultCoreDataStack is enabled, but it won't write to the database after calling the save() method of a model. But if I send the app to the background (pressing the home button) it does write the data which I believe it's done by the SugarRecord.applicationWillEnterForeground() method.

from sugarrecord.

pepicrft avatar pepicrft commented on June 20, 2024

Checked with the example project ant yes, there's a regression there @foxling and @deivuh , assigning a high priority to work on that as soon as possible. Thanks for the report guys

from sugarrecord.

pepicrft avatar pepicrft commented on June 20, 2024

Solved @deivuh and @foxling

from sugarrecord.

deivuh avatar deivuh commented on June 20, 2024

Thanks @pepibumur ! Really appreciate it

from sugarrecord.

foxling avatar foxling commented on June 20, 2024

Thanks @pepibumur

from sugarrecord.

thewhitewood avatar thewhitewood commented on June 20, 2024

Had the same issue - pulled the latest/ fix off the repo and it's missing "SugarRecordArray" ?

from sugarrecord.

pepicrft avatar pepicrft commented on June 20, 2024

@thewhitewood remove the group from XCode and add the entire library again because you're missing a new class I added to the library but that you haven't added to the XCode target as a file to be compiled.

from sugarrecord.

thewhitewood avatar thewhitewood commented on June 20, 2024

Cool - my bad :(

from sugarrecord.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.