KunMinX/UnPeek-LiveData
LiveData 数据倒灌:别问,问就是不可预期 - Perfect alternative to SingleLiveEvent, supporting multiple observers. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2281
- days_rel: n/a
- days_push: 1061
- n_releases_24m: 0
Adoption not part of the score
1260 stars · 122 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
An Android library providing UnPeekLiveData, a drop-in replacement for SingleLiveEvent that prevents LiveData 'sticky event' data re-push (data backflow) to newly subscribed observers. It supports multiple observers consuming the same message, manual memory cleanup, and read-write separation following the single-source-of-truth principle.
Use cases
- prevent livedata data backflow on android
- singleliveevent alternative supporting multiple observers
- one-time event distribution in sharedviewmodel
- stop livedata pushing stale data to new subscribers
- android mvvm page communication events
- consume event by multiple fragments without re-delivery
When to choose
- you use SharedViewModel + LiveData for inter-page communication and hit sticky-event re-push issues
- you need one message consumed by multiple observers before blocking re-delivery
- you want a non-invasive, open-closed SingleLiveEvent replacement in Java
When to avoid
- you need high-frequency event dispatch (more than ~5 events per second) - the author recommends MVI-Dispatcher instead
- your project uses Kotlin coroutines/Flow where SharedFlow offers a native solution
- you need a license-protected dependency - the project has no license
Facets
library · maturity maintenance
state-management middleware mobile-development android-tools developer-tools jvm livedata jetpack android-architecture event-distribution mvvm singleliveevent-alternative android mobile
1 source
- readme: https://github.com/KunMinX/UnPeek-LiveData · fetched 2026-08-28 · c6fe4bb3829b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| KunMinX/UnPeek-LiveData | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="KunMinX/UnPeek-LiveData")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem