Skip to content

Commit

Permalink
Inline AsyncImageState creation. (#2719)
Browse files Browse the repository at this point in the history
* Inline AsyncImageState creation.

* Suppress.
  • Loading branch information
colinrtwhite authored Nov 26, 2024
1 parent 6dee923 commit e7ae394
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@file:Suppress("NOTHING_TO_INLINE")

package coil3.compose.internal

import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -138,7 +140,7 @@ internal fun onStateOf(
@Composable
@NonRestartableComposable
@ReadOnlyComposable
internal fun AsyncImageState(
internal inline fun AsyncImageState(
model: Any?,
imageLoader: ImageLoader,
) = AsyncImageState(model, LocalAsyncImageModelEqualityDelegate.current, imageLoader)
Expand Down

0 comments on commit e7ae394

Please sign in to comment.