Skip to content

Commit

Permalink
🔧 The same response was needed for rememberAsyncImagePainter, so it w…
Browse files Browse the repository at this point in the history
…as implemented.
  • Loading branch information
Corvus400 committed Sep 1, 2024
1 parent aa5c8a7 commit ddac0d0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.github.droidkaigi.confsched.droidkaigiui

import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.graphics.painter.Painter
import coil3.request.ImageRequest

Expand All @@ -13,7 +14,9 @@ fun rememberAsyncImagePainter(url: String): Painter {

@Composable
fun rememberAsyncImagePainter(model: ImageRequest): Painter {
val requestModel = remember(model) { model }

return coil3.compose.rememberAsyncImagePainter(
model = model,
model = requestModel
)
}

0 comments on commit ddac0d0

Please sign in to comment.