Integration with redux-devtools-extension #115

Closed
azu opened this Issue Mar 8, 2017 · 2 comments

Comments

Projects
None yet
1 participant
@azu
Member

azu commented Mar 8, 2017

https://github.com/zalmoxisus/redux-devtools-extension is great debugger tools.

We can use it with almin by creating connector module.
I've tried to test and it work.

    const withDevTools = (
        // process.env.NODE_ENV === 'development' &&
        typeof window !== 'undefined' && window.devToolsExtension
    );
    if (withDevTools) {
        const devTools = window.devToolsExtension.connect({ // work??
            features: {
                pause: false, // start/pause recording of dispatched actions
                lock: false, // lock/unlock dispatching actions and side effects
                persist: false, // persist states on page reloading
                export: true, // export history of actions in a file
                import: 'almin-log', // import history of actions from a file
                jump: false, // jump back and forth (time travelling)
                skip: false, // skip (cancel) actions
                reorder: false, // drag and drop actions in the history list
                dispatch: true, // dispatch custom actions or action creators
                test: true // generate tests for the selected actions
            }
        });
        devTools.init(appContext.getState());
        appContext.onChange((stores) => {

        });
        appContext.onCompleteEachUseCase((payload, meta) => {
            devTools.send(meta.useCase.name, appContext.getState());
        });

We can create connector with redux-devtools-extension.
It will be provided as npm module like almin-devtools?

We already has almin-logger.
It has pros and cons. Also, redux-devtools-extension has pros and cons.

@azu azu added the Proposal label Mar 8, 2017

@azu

This comment has been minimized.

Show comment
Hide comment
Member

azu commented Mar 9, 2017

@azu

This comment has been minimized.

Show comment
Hide comment

@azu azu closed this Mar 18, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment