Victor Turansky
Victor Turansky
Examples of calls will be very helpful
`GridRow ` and `GridColumn ` have strict signatures and `multiple` doesn't look like solution for them
Which API do you expect in described cases?
@brandyscarney could you, please, review these changes?
It doesn't look like `file-saver` is highly required in current case. Repo looks like unsupported :( [Following snippet](https://github.com/JetBrains/kotlin-wrappers/blob/bd44fa39dedc1e138ca43c4fa085d7dd4e228cbe/kotlin-browser/src/webMain/kotlin/web/file/Files.kt#L14-L26) can be used instead.
@mipastgt `file-saver` provides other behaviour?
Works in Chrome - https://developer.mozilla.org/en-US/docs/Web/API/Window/showSaveFilePicker
> The proposed solution is to use `window.onError` for browser environments Expected solution for browser: ```kotlin fun handleCoroutineExceptionImpl(context, exception) { window.dispatchEvent(ErrorEvent("error", ErrorEventInit { error = exception })); } ```
Probably it will be better to use `suspend` [fetch](https://github.com/JetBrains/kotlin-wrappers/blob/a8666edb75d8daf9eddf371872c5286be6f3f320/kotlin-web/src/webMain/kotlin/web/http/fetch.kt#L9) from Kotlin Wrappers: ```kotlin suspend fun main() { val request = fetch("https://httpbin.org/anything") if (it.ok) { println(request.text()) } } ```
In this case `then` combines 2 operators in one (`Result.map` and `Result.onSuccess` - nearest analogs) and as result - JS payload required. Possible solution - provide additional extensions, but it...