@laserware/stasis
    Preparing search index...

    Function bindActionCreators

    • Turns an object whose values are action creators, into an object with the same keys, but with every function wrapped into a dispatch call so they may be invoked directly. This is just a convenience method, as you can call store.dispatch(MyActionCreators.doSomething()) yourself just fine.

      For convenience, you can also pass an action creator as the first argument, and get a dispatch wrapped function in return.

      Type Parameters

      Parameters

      • actionCreator: C
      • dispatch: Dispatch

        The dispatch function available on your Redux store.

      Returns C

      The object mimicking the original object, but with every action creator wrapped into the dispatch call. If you passed a function as actionCreators, the return value will also be a single function.

    • Turns an object whose values are action creators, into an object with the same keys, but with every function wrapped into a dispatch call so they may be invoked directly. This is just a convenience method, as you can call store.dispatch(MyActionCreators.doSomething()) yourself just fine.

      For convenience, you can also pass an action creator as the first argument, and get a dispatch wrapped function in return.

      Type Parameters

      Parameters

      • actionCreator: A
      • dispatch: Dispatch

        The dispatch function available on your Redux store.

      Returns B

      The object mimicking the original object, but with every action creator wrapped into the dispatch call. If you passed a function as actionCreators, the return value will also be a single function.

    • Turns an object whose values are action creators, into an object with the same keys, but with every function wrapped into a dispatch call so they may be invoked directly. This is just a convenience method, as you can call store.dispatch(MyActionCreators.doSomething()) yourself just fine.

      For convenience, you can also pass an action creator as the first argument, and get a dispatch wrapped function in return.

      Type Parameters

      Parameters

      • actionCreators: M

        An object whose values are action creator functions. One handy way to obtain it is to use import * as syntax. You may also pass a single function.

      • dispatch: Dispatch

        The dispatch function available on your Redux store.

      Returns M

      The object mimicking the original object, but with every action creator wrapped into the dispatch call. If you passed a function as actionCreators, the return value will also be a single function.

    • Turns an object whose values are action creators, into an object with the same keys, but with every function wrapped into a dispatch call so they may be invoked directly. This is just a convenience method, as you can call store.dispatch(MyActionCreators.doSomething()) yourself just fine.

      For convenience, you can also pass an action creator as the first argument, and get a dispatch wrapped function in return.

      Type Parameters

      Parameters

      • actionCreators: M

        An object whose values are action creator functions. One handy way to obtain it is to use import * as syntax. You may also pass a single function.

      • dispatch: Dispatch

        The dispatch function available on your Redux store.

      Returns N

      The object mimicking the original object, but with every action creator wrapped into the dispatch call. If you passed a function as actionCreators, the return value will also be a single function.