This commit is contained in:
Henry Hiles 2025-12-07 16:31:03 -05:00
commit 63a9d2d169
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
15 changed files with 388 additions and 299 deletions

View file

@ -7,7 +7,9 @@ import "package:nexus/models/space.dart";
class SelectedSpaceController extends AsyncNotifier<Space> {
@override
Future<Space> build() async {
final spaces = await ref.watch(SpacesController.provider.future);
final spaces = await ref.watch(
SpacesController.provider.selectAsync((data) => data),
);
final selectedSpaceId = ref.watch(
KeyController.provider(KeyController.spaceKey),
);