spaceRelationsProvider top-level property
final
If the room exists, this returns its space relations Stays up to date with underlying client data if a room was found.
Implementation
final spaceRelationsProvider =
FutureProvider.family<SpaceRelations?, String>((ref, roomId) async {
final room = await ref.watch(maybeRoomProvider(roomId).future);
if (room == null) return null;
return await room.spaceRelations();
});