Enro: registerForNavigationResult not working after bumping up to 2.8.2

Hi,

I have been using Enro for my company project. Recently, I upgraded the Enro version from 2.7.x to 2.8.x. I have started to notice that some of the registerForNavigationResult methods have stopped working (result not getting delivered), likely due to the issue mentioned in the changelog. (FYI, our project is using kotlix 2.x)

⚠️ Updated result channel identifiers in preparation for Kotlin 2.0 ⚠️

Kotlin 2.0 changes the way that lambdas are compiled, which has implications for registerForNavigationResult and how result channels are uniquely identified. Activites, Fragments, Composables and ViewModels that use by registerForNavigationResult directly will not be affected by this change. However, if you are creating result channels inside of other objects, such as delegates, helper objects, or extension functions, you should verify that these cases continue to work as expected. It is not expected that there will be issues, but if this does result in bugs in your application, please raise them on the Enro GitHub repository.

Do you have any suggestions for a workaround for this issue? Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 25 (13 by maintainers)

Most upvoted comments

Awesome, glad to hear it! I will close the issue now.

Thanks for raising the issue, and please feel free to let me know if you find any other bugs or have any feature requests or ideas on how to improve Enro; I can’t promise that all ideas will make it into the library, but I’m always interested to hear what you might find useful!

No, that is not expected. That looks like the instruction isn’t being parcelized correctly (and might not even be related to the kotlin lambda/anonymous class changes mentioned in the change log).

I’m trying to reproduce this locally to figure out exactly what’s happening there.