storeAvailable function

  1. @riverpod
bool storeAvailable(
  1. Ref ref
)

Whether this build can sell anything at all.

A game that configures no storefront gets no store route, no catalog fetch, and no local database opened to discover that — the list is a composition decision the application made before any of this ran.

Implementation

@riverpod
bool storeAvailable(Ref ref) => ref.watch(storefrontsProvider).isNotEmpty;