Skip to content

Explain "It appears you have provided a deprecated history object to" __v2_compatible__ #2866

@gajus

Description

@gajus

I am getting an error:

Warning: [react-router] It appears you have provided a deprecated history object to <Router/>, please use a history provided by React Router with import { browserHistory } from 'react-router' or import { hashHistory } from 'react-router'. If you are using a custom, valid history please set history.__v2_compatible__ = true. See http://bit.ly/1Pxrl7E

I read the https://github.com/rackt/react-router/blob/master/upgrade-guides/v2.0.0.md#using-history-with-router

It is not clear whether it is discouraged to use history because of some incompatibilities or if there is another history package that should be used.

I prefer to have router and history packages separate, to promote separation of concerns.

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