Comments (3)
The impact of this will be quite large, because we effectively have to create tombstone widgets that somehow make it into the children collections but not the native UI tree.
from redwood.
Decisions:
-
Properties: do nothing. The callback can dedupe if it wants because it gets widget tag + property tag.
-
Children: I think we can just return null? Nodes will get added to the map, and any children ops will get ignored. Tests to confirm. The callback can dedupe if it wants because it gets widget tag + children tag.
-
Widget: Introduce NullWidget or something. This holds the position to ensure indices on future operations remain correct. Ideally it's a GONE view/display:none; DOM node/empty composable/whatever on iOS and we don't have to special case it. Tests to confirm.
from redwood.
A null widget should NOT notify the listener for missing properties or children!
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.