Compose: @Immutable missing on PostRecord, Facet, FacetIndex, FacetFeature #40

Closed
opened 2026-06-22 20:10:21 +00:00 by starsetbyte · 0 comments
Owner

What

PostRecord, Facet, FacetIndex, and FacetFeature are all-val data classes passed to Compose but lack @Immutable. Project convention (from CLAUDE.md) says all stable data classes passed to Compose carry @Immutable — without it, Compose cannot skip recomposition during scroll.

Fix

Added @Immutable annotation to all four classes in FeedModels.kt.

Fixed in PR #36.

## What `PostRecord`, `Facet`, `FacetIndex`, and `FacetFeature` are all-val data classes passed to Compose but lack `@Immutable`. Project convention (from CLAUDE.md) says all stable data classes passed to Compose carry `@Immutable` — without it, Compose cannot skip recomposition during scroll. ## Fix Added `@Immutable` annotation to all four classes in `FeedModels.kt`. **Fixed in PR #36.**
starsetbyte 2026-06-22 20:10:21 +00:00
Sign in to join this conversation.
No description provided.