sellmair / kompass

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

GetRouteSyntax should not contain an instance of router #79

Closed JulianBissekkou closed 5 years ago

JulianBissekkou commented 5 years ago

Some fragments want to use methods like getRoute or by route() to get the route-specific information.

When implementing KompassFragment or GetRouteSyntax you also have to specify a router which is not needed if the fragment itself does no routing. Any specific reason why this was designed that way? Maybe I should use another interface instead? 🤔