Example project to demonstrate Apollo Kotlin lockups when using Kotlin/JS
./gradlew jsBrowserRun
Observe that the browser locks up, constantly saturating a CPU core, when processing data after making the GraphQL network call.
Use the Kotlin/JS IR backend instead of the default LEGACY one, as per apollo-kotlin#4590:
kotlin {
- js {
+ js(IR) {
binaries.executable()
//...