Comments (6)
any relation with Koin?
from koin.
If you initialize the AImpl() instance directly, do the same in step 5 below
a.C()
a.B()
Everything was fine. There were no errors, Do you know why? @arnaudgiuliani
Step 5
.......
private val a: A by inject()
change to
private val a = AImpl()
......
setContent {
GrpcDemoTheme {
a.C()
a.B()
}
}
from koin.
I would say it's about Compose here, but not sure to understand well. Please use the "code block" to help us read :)
from koin.
I've described the whole process in detail here, so you can take a look @arnaudgiuliani
from koin.
can you try without Koin, to declare those Composables?
from koin.
Yes, The Step 6 is to use the instance without using koin to declare that it can be used normally @arnaudgiuliani
from koin.
Related Issues (20)
- Typo in the documentation HOT 2
- [koin-core] flatten function HOT 5
- Proofreading documentations
- Update koin-compose to use Compose 1.6.0 HOT 3
- style: ktlint and spotless plugin
- Stackoverflow when binding class to interface with declaration of class in seperate single block
- The Constructor DSL could inject parameters via getOrNull() HOT 1
- SavedStateHandle instance not the same as in NavBackStackEntry HOT 1
- Add route support to koinNavGraphViewModel() extension HOT 1
- ViewModel scope handling in 3.5.4-RC1 HOT 7
- [Enhancement] Auto Replace for Deprecation not working correctly HOT 1
- activityViewModel with scoped parameters can't be injected HOT 1
- Support androidx viewmodel for kotlin multiplatform HOT 26
- State is not restored correctly when using `koinNavGraphViewModel`
- Koin 3.5 is not binary-compatible with 3.4 HOT 2
- [koin-android] broken shared view model factory when migrating from 3.5.0 -> 3.5.3 HOT 1
- Compose view model constantly returning new instances with non-root scope HOT 5
- No static method makeOptions$default(Lorg/koin/core/module/Module;ZZILjava/lang/Object;)Lorg/koin/core/definition/Options; in
- KoinAppAlreadyStartedException after changing theme HOT 5
- > Task :composeApp:compileKotlinIosSimulatorArm64 FAILED error: Could not find "org.jetbrains.compose.annotation-internal:annotation" 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 koin.