Looking for guidance on Kotlin Redux -
We have an React Application with Redux and Saga as a middleware.
We are thinking of using Kotlin for non-UI code (reducer, utils, api etc.,). Still retain the ReactJS code for UI.
1. we use saga to make async calls. The recommendation for kotlin is to use coroutines. Can some one point me to the prototype using coroutines/kotlin-js which can listen to the actions and execute the coroutines. I am not clear on what is the replacement for saga and how to do it.
2. Another problem is that Actions that we use in reactJs components, which is in js. The actions in JS is string type, the action used in kotlin-js is class type. How to map these 2 types (string to class).