Skip to content

Commit 6448ece

Browse files
authored
Merge pull request #854 from NonoxyS/fix/ios-readTextAsState-missing-key
[iOS] Add AssetResource key to produceState in readTextAsState()
2 parents f2789e2 + 235fbf1 commit 6448ece

File tree

1 file changed

+1
-1
lines changed
  • resources-compose/src/appleMain/kotlin/dev/icerock/moko/resources/compose

1 file changed

+1
-1
lines changed

resources-compose/src/appleMain/kotlin/dev/icerock/moko/resources/compose/AssetResource.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import dev.icerock.moko.resources.AssetResource
1111

1212
@Composable
1313
actual fun AssetResource.readTextAsState(): State<String?> {
14-
return produceState<String?>(null) {
14+
return produceState<String?>(null, this) {
1515
value = readText()
1616
}
1717
}

0 commit comments

Comments
 (0)