storeOf<T extends Store<Object?>> method

T storeOf<T extends Store<Object?>>(
  1. AppContainer container
)

Typed lookup of a Store owned by this feature in container.

Feature runtime state (including the scope API where stores live) is per-container — you must tell the helper which container's runtime to look in.

Implementation

T storeOf<T extends Store>(AppContainer container) {
  return container.runtimeOf(this).scopeApi.store<T>();
}