CacheBinding<T> extension
Binds a SignalSlice<T> to the CacheObserver for automatic cross-view state synchronization.
When the cache emits an update for type T, the slice's
SignalResult is updated automatically — no network re-fetch.
// In generated DomainState:
final product = bind<Product>('product', getProductUseCase, params)
..bindCache(); // auto-generated for @Cacheable entities
- on
-
- SignalSlice<
T>
- SignalSlice<
Methods
-
bindCache(
) → SignalSubscription -
Available on SignalSlice<
Subscribe this slice to cache updates for typeT> , provided by the CacheBinding extensionT.