brick_offline_first_with_supabase 0.1.0 copy "brick_offline_first_with_supabase: ^0.1.0" to clipboard
brick_offline_first_with_supabase: ^0.1.0 copied to clipboard

A Brick domain that routes data fetching through local providers before a Supabase provider.

brick_offline_first_with_supabase workflow

OfflineFirstWithSupabaseRepository streamlines the Supabase integration with an OfflineFirstRepository.

The OfflineFirstWithSupabase domain uses all the same configurations and annotations as OfflineFirst.

Models #

ConnectOfflineFirstWithSupabase #

@ConnectOfflineFirstWithSupabase decorates the model that can be serialized by one or more providers. Offline First does not have configuration at the class level and only extends configuration held by its providers:

@ConnectOfflineFirstWithSupabase(
  supabaseConfig: SupabaseSerializable(),
  sqliteConfig: SqliteSerializable(),
)
class MyModel extends OfflineFirstModel {}
copied to clipboard

FAQ #

Why can't I declare a model argument?

Due to an open analyzer bug, a custom model cannot be passed to the repository as a type argument.

Unsupported Field Types #

  • Any unsupported field types from SupabaseProvider, or SqliteProvider
  • Future iterables of future models (i.e. Future<List<Future<Model>>>).
12
likes
0
points
2.96k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.08 - 2025.03.23

A Brick domain that routes data fetching through local providers before a Supabase provider.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

brick_core, brick_offline_first, brick_sqlite, brick_supabase, logging, meta, sqflite_common

More

Packages that depend on brick_offline_first_with_supabase