Comments (3)
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.
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.
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)
- Support for Widget.dispose() for non-protocol applications
- Add layout direction variation to iOS snapshot tests
- `CrossAxisAlignment.Start` forces child to wrap its size on Android
- Turn off Zipline API tracking for test app
- Ship a BOM
- Close TreehouseDispatchers in TreehouseApp.Factory.close() HOT 2
- Support unsetting of unscoped modifiers
- Remove code dealing with old memory model
- Changes to `Modifier.size` are not reflected HOT 2
- Consider splitting the binding for scrolling vs. non-scrolling layouts.
- Root component’s dimensions inconsistent across platforms HOT 1
- Please add a Default EventListener HOT 2
- Treehouse Gradle Plugin
- IndexOutOfBoundsException in LazyListUpdateProcessor HOT 1
- Protocol does JSON decoding on the main thread
- Determine if density multiplier still should exist
- UncaughtTreehouseException: toIndex = 1
- Use a Redwood schema for loading and error UIs HOT 6
- [jwilson] use this once we update Zipline. HOT 1
- Once QuickJS supports WeakRef, enable regular tests:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redwood.