fossar / selfoss

multipurpose rss reader, live stream, mashup, aggregation web application
https://selfoss.aditu.de
GNU General Public License v3.0
2.36k stars 343 forks source link

client: Cancel previous requests more reliably #1270

Closed jtojnar closed 3 years ago

jtojnar commented 3 years ago

This was always an issue but the React port made it extra obvious. Let’s have the components maintain their own AbortControllers as suggested by https://dev.to/viclafouch/cancel-properly-http-requests-in-react-hooks-and-avoid-memory-leaks-pd7. It is cleaner too.