fix(riverpod): a listener that reads the value is not a render #3

Merged
trevon merged 1 commit from fix/riverpod-listen-is-not-a-render into main 2026-09-22 21:19:28 +00:00

1 commit

Author SHA1 Message Date
trvon
f6411dc23b
fix(riverpod): a listener that reads the value is not a render
Some checks failed
Lint Commits / commitlint (pull_request) Successful in 15s
Tests / Static Analysis (pull_request) Has been cancelled
Tests / Tests (pull_request) Has been cancelled
riverpod-async-gap treated any site that read an AsyncValue as a UI read,
including ref.listen. A listener mirrors the value into a side effect and
draws nothing, so it cannot leave a blank or stale screen. Dogfooding on
word_alive flagged an analytics user-property listener this way.

A gap now needs a ref.watch that reads the value. Listeners still count as
places that handle error or loading.
2026-09-22 15:17:19 -06:00