1
0
forked from firka/firka

fix: reset lesson cache on refresh instead of merging

This commit is contained in:
2026-09-16 14:31:06 +02:00
parent 69ec627762
commit 34d386c033

View File

@@ -338,6 +338,9 @@ class _HomeTimetableScreen extends FirkaState<HomeTimetableScreen>
listenWhen: (previous, current) =>
current.refreshTrigger != previous.refreshTrigger,
listener: (context, state) {
// Underlying writes are correct now (see kreta_client.dart), so
// a plain clear()+reread is reliable and needs no stale-value
// workaround.
_lessonsCache.clear();
setState(() {});
},