fix(ui): add article id to content key

This commit is contained in:
junkfood 2024-02-20 02:45:44 +08:00
parent 4b594badb7
commit 8b89644d6d
No known key found for this signature in database
GPG Key ID: 2EA5B648DB112A34

View File

@ -115,7 +115,7 @@ fun ReadingPage(
// Content
AnimatedContent(
targetState = readerState,
contentKey = { it.content },
contentKey = { it.articleId + it.content.text },
transitionSpec = {
val direction = when {
initialState.nextArticleId == targetState.articleId -> UPWARD