Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WasmJs support for apollo-adapters #5795

Closed
martinbonnin opened this issue Apr 10, 2024 · 5 comments
Closed

WasmJs support for apollo-adapters #5795

martinbonnin opened this issue Apr 10, 2024 · 5 comments

Comments

@martinbonnin
Copy link
Contributor

Description

kotlinx.datetime now supports WasmJs. We should publish a WasmJs version of apollo-adapters.

But before doing that, we'll need a way to add BigDecimal support using big.js or something else.

@joreilly
Copy link
Contributor

Is it case that Kotlin/JS is supported......thought similar hooks could be used when using WasmJs?

@joreilly
Copy link
Contributor

Nvm, I see that it is....I tried enabling wasm for that module and following seems to work

findByName("wasmJsMain")?.apply {
      dependencies {
        implementation(npm("big.js", "5.2.2"))
      }
    }

I copied over BigDecimal.kt and it seems happy with @JsModule("big.js") but other errors then...

@joreilly
Copy link
Contributor

joreilly commented Apr 11, 2024

asked about error I'm seeing here https://kotlinlang.slack.com/archives/CDFP59223/p1712856405783919

@martinbonnin
Copy link
Contributor Author

Fixed with #5803 💙

Copy link
Contributor

Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Kotlin usage and allow us to serve you better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants