reset<T extends OrbitStore> static method

void reset<T extends OrbitStore>()

Disposes and removes store T from the registry — e.g. on logout, so the next use call builds a fresh instance. Runs OrbitStore.onDispose on the way out.

Implementation

static void reset<T extends OrbitStore>() {
  final store = _stores.remove(T);
  if (store != null) {
    store.dispose();
    _purgeUndoEntriesFor(store);
  }
}