@laserware/stasis
    Preparing search index...

    Function applyMiddleware

    • Creates a store enhancer that applies middleware to the dispatch method of the Redux store. This is handy for a variety of tasks, such as expressing asynchronous actions in a concise manner, or logging every action payload.

      See redux-thunk package as an example of the Redux middleware.

      Because middleware is potentially asynchronous, this should be the first store enhancer in the composition chain.

      Note that each middleware will be given the dispatch and getState functions as named arguments.

      Returns StoreEnhancer

      A store enhancer applying the middleware.

    • Creates a store enhancer that applies middleware to the dispatch method of the Redux store. This is handy for a variety of tasks, such as expressing asynchronous actions in a concise manner, or logging every action payload.

      See redux-thunk package as an example of the Redux middleware.

      Because middleware is potentially asynchronous, this should be the first store enhancer in the composition chain.

      Note that each middleware will be given the dispatch and getState functions as named arguments.

      Type Parameters

      • Ext1
      • S

        The type of the state supported by a middleware.

      Parameters

      Returns StoreEnhancer<{ dispatch: Ext1 }>

      A store enhancer applying the middleware.

    • Creates a store enhancer that applies middleware to the dispatch method of the Redux store. This is handy for a variety of tasks, such as expressing asynchronous actions in a concise manner, or logging every action payload.

      See redux-thunk package as an example of the Redux middleware.

      Because middleware is potentially asynchronous, this should be the first store enhancer in the composition chain.

      Note that each middleware will be given the dispatch and getState functions as named arguments.

      Type Parameters

      • Ext1
      • Ext2
      • S

        The type of the state supported by a middleware.

      Parameters

      Returns StoreEnhancer<{ dispatch: Ext1 & Ext2 }>

      A store enhancer applying the middleware.

    • Creates a store enhancer that applies middleware to the dispatch method of the Redux store. This is handy for a variety of tasks, such as expressing asynchronous actions in a concise manner, or logging every action payload.

      See redux-thunk package as an example of the Redux middleware.

      Because middleware is potentially asynchronous, this should be the first store enhancer in the composition chain.

      Note that each middleware will be given the dispatch and getState functions as named arguments.

      Type Parameters

      • Ext1
      • Ext2
      • Ext3
      • S

        The type of the state supported by a middleware.

      Parameters

      Returns StoreEnhancer<{ dispatch: Ext1 & Ext2 & Ext3 }>

      A store enhancer applying the middleware.

    • Creates a store enhancer that applies middleware to the dispatch method of the Redux store. This is handy for a variety of tasks, such as expressing asynchronous actions in a concise manner, or logging every action payload.

      See redux-thunk package as an example of the Redux middleware.

      Because middleware is potentially asynchronous, this should be the first store enhancer in the composition chain.

      Note that each middleware will be given the dispatch and getState functions as named arguments.

      Type Parameters

      • Ext1
      • Ext2
      • Ext3
      • Ext4
      • S

        The type of the state supported by a middleware.

      Parameters

      Returns StoreEnhancer<{ dispatch: Ext1 & Ext2 & Ext3 & Ext4 }>

      A store enhancer applying the middleware.

    • Creates a store enhancer that applies middleware to the dispatch method of the Redux store. This is handy for a variety of tasks, such as expressing asynchronous actions in a concise manner, or logging every action payload.

      See redux-thunk package as an example of the Redux middleware.

      Because middleware is potentially asynchronous, this should be the first store enhancer in the composition chain.

      Note that each middleware will be given the dispatch and getState functions as named arguments.

      Type Parameters

      • Ext1
      • Ext2
      • Ext3
      • Ext4
      • Ext5
      • S

        The type of the state supported by a middleware.

      Parameters

      Returns StoreEnhancer<{ dispatch: Ext1 & Ext2 & Ext3 & Ext4 & Ext5 }>

      A store enhancer applying the middleware.

    • Creates a store enhancer that applies middleware to the dispatch method of the Redux store. This is handy for a variety of tasks, such as expressing asynchronous actions in a concise manner, or logging every action payload.

      See redux-thunk package as an example of the Redux middleware.

      Because middleware is potentially asynchronous, this should be the first store enhancer in the composition chain.

      Note that each middleware will be given the dispatch and getState functions as named arguments.

      Type Parameters

      • Ext

        Dispatch signature added by a middleware.

      • S = any

        The type of the state supported by a middleware.

      Parameters

      • ...middlewares: Middleware<any, S, any>[]

        The middleware chain to be applied.

      Returns StoreEnhancer<{ dispatch: Ext }>

      A store enhancer applying the middleware.