Mohammad Hossein Kalantarian
04/12/2025, 9:48 AMChrimaeon
04/12/2025, 9:53 AMMohammad Hossein Kalantarian
04/12/2025, 9:56 AMChrimaeon
04/12/2025, 9:57 AMChrimaeon
04/12/2025, 9:58 AMFernando
04/12/2025, 4:32 PMsuspend
functions do not have a counter part in JS, so you need to create wrappers for your suspend methods that wrap them in a JS promise
. This can get solved using the suspend-transform plugin
• You might already know that you need to mark exported things with @JsExport
, which might get annoying
• Dependency Injection might be hard as well, since you need to access the concrete implementation, or you need to crate a JS object that lazily loads your dependencies with the concrete implementation
• And lastly (and is something that I haven't solved already) is that if you want to have a i.e repository that returs a flow you will again, need to craete some kind of wrapper.
Hope this helps!koga
04/12/2025, 7:52 PM