prefetchQuery<T> method

Future<void> prefetchQuery<T>(
  1. QueryOptions<T> options
)

Fetches options while reporting errors only through cache state.

Implementation

Future<void> prefetchQuery<T>(QueryOptions<T> options) async {
  try {
    await fetchQuery(options);
  } on Object {
    // Prefetch populates cache state; consumers observe the error later.
  }
}