Skip to content

Infinite recursion when used with redux-history-transitions #248

@gdaolewe

Description

@gdaolewe
import {browserHistory} from 'react-router';
import {createStore, compose} from 'redux';
import createTransitionEnhancerFromHistory from 'redux-history-transitions';

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(
  state => state,
  {},
  composeEnhancers(
    createTransitionEnhancerFromHistory(browserHistory)
  )
);

store.dispatch({type: 'myAction'});

This causes Uncaught RangeError: Maximum call stack size exceeded as redux-history-transitions' dispatch continually calls itself. This does not occur when not using the extension or when only using other enhancers such as applyMiddleware and not redux-history-transitions. This also does not occur when using redux-devtools without the extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions