removeAll<S extends EntityState<T>> method

S removeAll<S extends EntityState<T>>(
  1. S state
)
override

Empties the store

Implementation

S removeAll<S extends EntityState<T>>(S state) {
  return state.copyWith(ids: [], entities: {}) as S;
}