Giter VIP home page Giter VIP logo

Comments (3)

JakeWharton avatar JakeWharton commented on July 26, 2024

If we pass it through the non-config instance of activity then in memory would be sufficient for at least config changes, but not process death from things like memory pressure.

from redwood.

JakeWharton avatar JakeWharton commented on July 26, 2024

I'm really hesitant about a file-based (or any persistent) store because the structure is guaranteed to not be persisted across app updates. So seems like we need to write the file name into the regular saved instance state and only restore its values when the path remains available. Otherwise we get a new path and clean up the old ones.

from redwood.

ahmed3elshaer avatar ahmed3elshaer commented on July 26, 2024

If I may share my opinion, I believe that the main issue lies in the way we initialize the MemoryStateStore, rather than the MemoryStateStore itself. Therefore, I suggest implementing an approach that relocates the TreehouseAppFactory, or at the very least, the MemoryStateStore, outside of any risky component. If I were using Redwood in an application, I would initialize the TreehouseAppFactory within the Application/ViewModel class and then expose the instance to the Activity with Dependency Injection or a similar technique.

from redwood.

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.