resetStore method

  1. @experimental
Future<List<QueryResult<Object?>?>>? resetStore({
  1. bool refetchQueries = true,
})

Resets the contents of the store with cache.store.reset() and then refetches of all queries unless refetchQueries is disabled

Implementation

@experimental
Future<List<QueryResult?>>? resetStore({bool refetchQueries = true}) {
  cache.store.reset();
  if (refetchQueries) {
    return queryManager.refetchSafeQueries();
  }
  return null;
}