Skip to content

关于react-router的history.push带状态跳转的问题 #155

@ckinmind

Description

@ckinmind

参考资料

history.push('/test', {myValue: 'ck'})

执行这个之后能在跳转过去的页面的`this.props.history.push.location.state中取到这个值,关键是刷新这个值也不丢失,只有路由的history改变之后才会取不到

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