facebook / facebook/litho

blank sticky SingleComponentSection

Open
#713 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
7.8k
Forks
768
PR merge metrics
No merged PRs in 30d

Description

- [x] I have searched [existing issues](https://github.com/facebook/litho/issues) and this is not a duplicate

## Version
0.38.0

## Issues and Steps to Reproduce
```
SingleComponentSection.create(c)
.sticky(true)
.component(
Text.create(c)
.text(entry.key)
.alignment(TextAlignment.CENTER)
.verticalGravity(VerticalGravity.CENTER)
.backgroundColor(Color.parseColor("#00574B"))
.heightDip(55f)
.textSizeSp(25f)
.textColor(Color.WHITE)
)
```

if I scroll vertically fast up and down, the sticky component goes blank in some point and it renders again if I scroll it to the stick position again;

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue using the provided SingleComponentSection snippet on version 0.38.0 by scrolling vertically quickly. Inspect the sticky SingleComponentSection behavior around recycling and rendering, then verify that the component remains visible rather than going blank during repeated scrolling.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.