Skip to content

Commit 378f409

Browse files
committed
#582 fix inferred type is ByteArray but Nothing? was expected
1 parent bdfdded commit 378f409

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • resources-compose/src/commonJsMain/kotlin/dev/icerock/moko/resources/compose/internal

resources-compose/src/commonJsMain/kotlin/dev/icerock/moko/resources/compose/internal/produceByteArray.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import androidx.compose.runtime.produceState
1212

1313
@Composable
1414
internal fun produceByteArray(url: String): State<ByteArray?> {
15-
return produceState(null, url) {
15+
return produceState<ByteArray?>(null, url) {
1616
@Suppress("TooGenericExceptionCaught")
1717
try {
1818
value = fetchByteArray(url)

0 commit comments

Comments
 (0)