Nestor Ledon
@OptIn(ExperimentalJsExport::class) @JsExport // FIXME fun fetchCountriesJs() : List<Country> { return fetchCountries() } suspend fun fetchCountries() : List<Country> { val countries: List<Country>? = store.get() if (countries.isNullOrEmpty()) return api.fetchCountries().also { store.set(it) } return countries }
Alex Styl
A modern programming language that makes developers happier.