Watch
1
0
Fork
You've already forked nexus
0
forked from Nexus/nexus

use stale data if needed instead of showing loading in pinned events drawer

This commit is contained in:
Henry Hiles 2026-07-06 20:42:25 -04:00 committed by istalri
commit 5fef08b88e

View file

@ -51,7 +51,8 @@ class PinnedEventsDrawer extends HookConsumerWidget {
], ],
), ),
), ),
AsyncData(:final value) => ListView.builder( AsyncData(:final value) ||
AsyncLoading(:final value?) => ListView.builder(
padding: .symmetric(horizontal: 8), padding: .symmetric(horizontal: 8),
itemCount: value.length, itemCount: value.length,
itemBuilder: (context, index) { itemBuilder: (context, index) {