mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-05-23 15:52:16 +00:00
`addListener` is called inside the `data:` callback of `build()`. Every single time the widget rebuilds, which happens on scroll, on tab switch, on any `setState`, it adds *another* listener to `_scrollController`, stacking up indefinitely. With 100 items and active scrolling, you can easily accumulate hundreds of listeners, each one firing `setState` + `_loadMore()` on every scroll-to-bottom. Fix: Move the listener setup to `initState()` and remove it in `dispose()` |
||
|---|---|---|
| .. | ||
| eval | ||
| ffi | ||
| l10n | ||
| models | ||
| modules | ||
| providers | ||
| router | ||
| services | ||
| src/rust | ||
| utils | ||
| main.dart | ||