Comments (5)
Thanks for the report. However it's not clear what is the cause. Would it be possible to provide some code of the composables and components mentioned in the stack trace. Also the second exception seems like an internal Compose error, which might be the cause.
from decompose.
You are right. Sorry, I'm doing too many things today - I opened up an issue with Compose here - JetBrains/compose-multiplatform#1687
from decompose.
From what I can understand from the stack trace, RootDeviceComponentImpl
creates a Router
in the init
section, which in turn registers to the StateKeeper
for stack preservation purposes. The latter has a check which verifies that there are no duplicate keys registered. This should not normally happen (unless there is a bug of course).
But then weird things happen. As far as I see, RootDeviceComponentImpl
is being created from the RootComponentImpl.resolveChild
method, which is called from RootComposableKt
composable function.
It seems the RootDeviceComponentImpl
gets duplicated somehow. Maybe because of the crash in Compose. To say something more accurate I would need some code of the mentioned components and composables.
from decompose.
Also worth to see how the very root component is initialised. A common mistake is to instantiate the root component inside a composable function without remember
. Ideally it should be instantiated in the main
function, before Compose is even started.
from decompose.
I wasn't remember
ing the Components created. This is what caused the issue.
from decompose.
Related Issues (20)
- Seeking help regarding Lifecycle functions are not getting called. HOT 1
- Expand the docs on passing the parent ComponentComponent to child components HOT 1
- Investigate if we can add checks to prevent passing the parent ComponentContext to children HOT 1
- RememberSaveable lost state after process death HOT 2
- Maybe add a FAQ page to docs? HOT 1
- Navigation events are lost when navigation is performed during initialisation (first call to childFactory)
- Maintain the last remaining configuration in the stack if `popWhile` never returned `true` HOT 1
- Optimize navigation functions for performance HOT 2
- Decompose with Compose Multiplatform for Web
- Predictive back gesture is not working when started while the main animation is in progress
- Navigation animation causes content to not invalidate HOT 9
- KMP project stopped building for iOS with wasm supported decompose HOT 5
- crash: on 3.0.0-alpha07 java.lang.NoSuchMethodError HOT 4
- Expose more parameters for predictive back animations HOT 1
- Document compose BackHandler <> decompose backHandler <> predictive back interaction HOT 1
- Expand the documentation on why do we need components HOT 1
- `LifecycleController` does not consider `resume`/`pause` events. HOT 1
- Consider adding an overload of `predictiveBackAnimation` that has a selector lambda for **both** animation and fallback animation HOT 1
- Describe creating custom navigation models in the docs HOT 1
- How to use StateValue in SwiftUI Textfield 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 decompose.