Options
All
  • Public
  • Public/Protected
  • All
Menu

Module redux/store

Index

Type aliases

Variables

Functions

Type aliases

AppDispatch

AppDispatch: typeof store.dispatch

RootState

RootState: ReturnType<typeof store.getState>

Variables

Const default

default: EnhancedStore<EmptyObject & Object & PersistPartial, AnyAction, MiddlewareArray<Middleware<{}, any, Dispatch<AnyAction>> | ThunkMiddleware<any, AnyAction, null> | ThunkMiddleware<any, AnyAction, undefined>>> = ...

Our marvellous, almighty Store of global data

Const persistor

persistor: Persistor = ...

Functions

Const useAppDispatch

  • useAppDispatch(): ThunkDispatch<any, null, AnyAction> & ThunkDispatch<any, undefined, AnyAction> & Dispatch<AnyAction>
  • Use this instead of useDispatch, for type safety!

    Returns ThunkDispatch<any, null, AnyAction> & ThunkDispatch<any, undefined, AnyAction> & Dispatch<AnyAction>

Generated using TypeDoc