Skip to content

1.0.0-beta2 incompatible with react-hot-loader #1418

@EvHaus

Description

@EvHaus

I use react-hot-loader for development to quickly reload components when they update. The 1.0.0-beta2 build has broken this compatibility. Anytime a module is hot loaded, this message is printed to the console:

Uncaught Error: Invariant Violation: <Router history> may not be changed

Any thoughts about how to get around this limitation?

The code that defines the history is pretty standard:

export default class App {
    render () {
        return (
            <Router history={new BrowserHistory()}>
                <Route component={AppView} path="/">
                    ...
                </Route>
            </Router>
        );
    }
}

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