getState method

T getState (
  1. Store store
)

Implementation

T getState(Store store) {
  return store.value[name] ?? initialState;
}