[#310] Ensure NavTarget and State are parcelable#311
[#310] Ensure NavTarget and State are parcelable#311LachlanMcKee wants to merge 1 commit intobumble-tech:1.xfrom
Conversation
libraries/core/src/main/kotlin/com/bumble/appyx/core/navigation/transition/CombinedHandler.kt
Fixed
Show fixed
Hide fixed
e2a15d0 to
42297c6
Compare
| ) { | ||
|
|
||
| sealed interface State { | ||
| sealed interface State : Parcelable { |
There was a problem hiding this comment.
This was a bug introduced due to a lack of compile-time contracts
42297c6 to
9806dbe
Compare
|
This is definitely a breaking change. We can likely fix the problems (samples that do not use Parcelable) in a different PR, but I think it's worthwhile adding this to avoid issues in the future |
|
If we don't want to go down this path (I don't see why we shouldn't, other than the fact that we have to make the enums parcelable), we MAY be able to solve this with a |
|
The original intention was to allow different types like primitives and serialisables. We can potentially introduce runtime checks Not against your approach. |
|
@CherryPerry that could be a good alternative as well. Let's discuss tomorrow! |
Description
Fixes #310
Check list
CHANGELOG.mdif required.