Viktor Podzigun

Results 12 comments of Viktor Podzigun

FYI: `useLayoutEffect` works just fine, so for time being I use it instead of `useEffect`. Could be some issue related to scheduling.

I'm currently working on this type of application. Its console File and Archive manager. You can check it here: [FAR.js](https://github.com/scommons/far-js) Hopefully you can find it useful.

Hi @evbo, if you need some `class`es from your `scala.js`/`ui` sub-module to be visible in your `backend` sub-module, then you can extract them into a third `common`/`shared` sub-module and make...

@fdietze as error message suggests >Linking returned more than one public module. try to comment out one of the methods annotated with `@JSExportTopLevel`, or remove `moduleID` prop from it. You...

@fdietze happy it was helpful for you :) This way you will have your code more structured and will overcome the above issue. Please, don't hesitate to ask if you...

FYI: I've temporarily "fixed" the same error in my project with the following `sbt` config, to continue generate full opt code: ```scala scalaJSLinkerConfig in fullOptJS ~= { _.withOptimizer(false) } ```

Looks like this issue is addressed in opened PR #2167

Actually, multiple modules may also work with Closure Compiler, there is `--chunk` option for some time already (former is `--module`), more details are in this [stackoverflow answer](https://stackoverflow.com/a/10401030/2992304). Basic idea is...

@sjrd I was thinking of [this limitation](https://github.com/scala-js/scala-js/blob/main/linker/jvm/src/main/scala/org/scalajs/linker/backend/closure/ClosureLinkerBackend.scala#L96) even when module kind is CommonJS: ```scala require(moduleSet.modules.size

I see, would it be then at least possible for now to provide additional method, similar to [TextEncoder.encodeInto](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encodeInto): ``` iconv.encodeInto(str, encoding, buf) ``` I have a use case, where I...