Skip to content

Commit f77ba18

Browse files
committed
- fix stability for markdown components
1 parent ece47b5 commit f77ba18

File tree

1 file changed

+4
-2
lines changed
  • multiplatform-markdown-renderer/src/commonMain/kotlin/com/mikepenz/markdown/compose/components

1 file changed

+4
-2
lines changed

multiplatform-markdown-renderer/src/commonMain/kotlin/com/mikepenz/markdown/compose/components/MarkdownComponents.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.mikepenz.markdown.compose.components
22

33
import androidx.compose.foundation.layout.fillMaxWidth
44
import androidx.compose.runtime.Composable
5+
import androidx.compose.runtime.Immutable
56
import androidx.compose.runtime.Stable
67
import androidx.compose.ui.Modifier
78
import com.mikepenz.markdown.compose.elements.MarkdownBlockQuote
@@ -91,7 +92,7 @@ fun markdownComponents(
9192
/**
9293
* Interface defining all supported components.
9394
*/
94-
@Stable
95+
@Immutable
9596
interface MarkdownComponents {
9697
val text: MarkdownComponent
9798
val eol: MarkdownComponent
@@ -116,7 +117,8 @@ interface MarkdownComponents {
116117
val custom: CustomMarkdownComponent?
117118
}
118119

119-
private class DefaultMarkdownComponents(
120+
@Immutable
121+
private data class DefaultMarkdownComponents(
120122
override val text: MarkdownComponent,
121123
override val eol: MarkdownComponent,
122124
override val codeFence: MarkdownComponent,

0 commit comments

Comments
 (0)