sellmair / kompass

Kotlin Multiplatform Router for Android and iOS
MIT License
345 stars 12 forks source link

`RoutingStack.Element`: Enforce correct hashCode and equals #58

Closed sellmair closed 5 years ago

sellmair commented 5 years ago

Wrong equals or hashCode implementations will result in silently breaking behaviours in DefaultFragmentStackPatcher . e.g. fragments will be removed to early, since they cannot be found in the newStack

sellmair commented 5 years ago

This also requires that the ElementImpl implements a correct hashCode and equals function!