mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-05-23 20:02:15 +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()` |
||
|---|---|---|
| .. | ||
| anime | ||
| browse | ||
| calendar | ||
| history | ||
| library | ||
| main_view | ||
| manga | ||
| mass_migration | ||
| more | ||
| novel | ||
| tracker_library | ||
| updates | ||
| webview | ||
| widgets | ||