Skip to content

Redux middleware configuration #11

Open
@spiroid

Description

@spiroid

Hi,

I'm trying to initialize redux with this middleware, but i can't get it working for now.
I'm new to redux and started with a project based on redux 0.12

A short snippet of the application init steps:

...
import { createRedux, createDispatcher, composeStores } from 'redux';
import thunkMiddleware from 'redux/lib/middleware/thunk';
import promiseMiddleware from 'redux-promise';

import * as stores from '../stores';   

const dispatcher = createDispatcher( 
    composeStores(stores),
    [promiseMiddleware, thunkMiddleware]
);

const redux = createRedux(dispatcher);

A i missing something ?
Thx for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions