Comments (8)
Is Data of a Navigation type?
https://composedestinations.rafaelcosta.xyz/destination-arguments/navigation-arguments
from compose-destinations.
Thanks @raamcosta for reply.
Yes, its annotated with kotlinx.serialization.Serializable
like @Serializable
If use id:Int as required params for destination, then TypedDestination
is created, and its taking int as params, but still not taking Serializable data object as param
from compose-destinations.
Thank you as well! ๐
Is Data class in the same module as the DetailsScreen composable?
from compose-destinations.
No, data class in in differenet module altogether
from compose-destinations.
In order for your navigation module to be able to serialize that data class, it needs to also use kotlinx serialization dependencies and plugins.
Hope that helps! Let' me know ๐
from compose-destinations.
Sorry I'm not sure I understand the solution in this thread.. In order for models annotated with @kotlinx.serialization.Serializable
what must we do? We are already using the kotlinx.Serialization dependency. Is there something else we need to be using?
from compose-destinations.
I would go to kotlinx serialization GitHub page and check their setup. I donโt know it from the top of my head, but I believe thereโs also a gradle plugin you have to apply.
from compose-destinations.
This solution works for me. There was no implementation(libs.kotlinx.serialization)
in module with navigation.
from compose-destinations.
Related Issues (20)
- Document OpenResultRecipient
- Support for sharing ResultBackNavigator between nested destinations HOT 2
- DestinationStyle.Dialog with usePlatformDefault properties causes wrong dialog measuring at some devices HOT 1
- Background is shown on exit transition HOT 2
- 2 navgraph with same destination name HOT 3
- Question about Multi module result back case HOT 1
- Not correct docs and error log about BottomSheet Style HOT 3
- ResultRecipient compile time validation fails when generics are declared across multiple lines HOT 3
- Is there a way to know when a flow is entered or exited? HOT 1
- [ksp] java.lang.NullPointerException HOT 3
- skipHalfExpanded on BottomSheet HOT 1
- Support K2
- Question : Multiple DestinationsNavHost handling HOT 4
- Question. is there a way to perform whole application tests (instrumented tests)? HOT 2
- NavigateUp when app is in background HOT 1
- [Question] Is any way make navigation from view model? HOT 1
- [Question]where to call navigate, which one is the best practices HOT 6
- KMP support HOT 4
- Bottom bar navigation documention that says to do `currentDestination == destination.direction` in selected doesn't select the element HOT 3
- [Question] How to enable / disable animation based on destination value HOT 4
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-destinations.