Comments (5)
I'm pretty sure it is a duplicate of this
#4476
from compose-multiplatform.
from compose-multiplatform.
@terrakok Looks similar.
Would it be viable to change the ResourceReader interface and local composition to not be internal?
It's not a perfect solution, but would at least allow for customization when needed.
from compose-multiplatform.
How will it help you?
from compose-multiplatform.
In this case, it would help me get preview code working by allowing me to override it.
My current solution is to expose my own composition local with my own version of the resource fetching methods, which ultimately call into the JB versions (or not).
Beyond that, I think allowing for overrides of it does present some interesting opportunities, but they would all be niche use cases. I also admit, it would mean exposing the internals of resource storage, which may not be something the team wants to do.
For example:
-
In past apps we've exposed an option which allows the debug apps to swap string values with the backing keys, for visual debugging purposes.
-
It also opens up interesting opportunities to allow for remotely updatable strings, possibly without creating an explicit wrapper API.
Both points can be done by just wrapping the API, but they are interesting use-cases, at least.
from compose-multiplatform.
Related Issues (20)
- composeResClass cannot be generated in modules other than shared
- Where can I see the changes to the slot table in the Compose July '24 release? HOT 1
- ModalBottomSheet Closes on Back Press with Keyboard Open in Compose Multiplatform HOT 1
- No such value argument slot in IrCallImpl: 1 (total=1) HOT 1
- Improve code style: Replace wildcard imports with explicit imports HOT 1
- Compose multiplatfrom and jetpack compose compatibility problem (java.lang.NoSuchMethodError MeasureScope#layout$default) HOT 1
- compose resources not loading on iOS ~ after 1.6.8 HOT 4
- Support type-safe navigation HOT 3
- (Select-All -> Delete) action in TextField doesn't work when empty text state disposes composition
- Questions related to `*.dll ` packaging
- On iOS platforms, Compose gestures(scroll or drag) conflict with native gestures. HOT 2
- [Navigation] commonrize `NavDeepLinkDslBuilder` HOT 1
- Detekt tasks are being registered when using the 1.7.0 dev gradle plugin HOT 1
- Clicking TextField should consume pointer press event HOT 1
- Adding a new resource dir to sourceSets.commonMain is not affecting Res.drawable HOT 4
- iOS App crashes on launch with MissingResourceException with Compose UI HOT 2
- iOS App crashes on launch with MissingResourceException HOT 2
- Keyboard not opening in iOS When using ExposedDropdownMenu HOT 2
- ImageViewer/Desktop - Build error due to a code not updated after some refactoring HOT 1
- Enahancement: Background Image Modifier with Alignment and Repeat Options HOT 2
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 compose-multiplatform.