MyGit

0.7.0

ui-router/react

版本发布时间: 2018-05-05 11:29:36

ui-router/react最新发布版本:1.0.7(2021-07-27 08:03:58)

0.7.0 (2018-05-05)

Compare @uirouter/react versions 0.6.2 and 0.7.0

Bug Fixes

Features

BREAKING CHANGES

before:

class SomeComponent extends React.Component {
  static contextTypes = {
    router: PropTypes.object
  }

  render () {
    // access context via this.context
    const router = this.context.router;
    // do whatever needed with the router
  }
}

after:

class SomeComponent extends React.Component {
  render () {
    // access router via props
    const router = this.props.router;
    // do whatever needed with the router
  }
}

// when rendering the component wrap it with the `<UIRouterConsumer>` component
<UIRouterConsumer>
  {router => <SomeComponent router={router} />}
</UIRouterConsumer>

Updated @uirouter/core from 5.0.17 to 5.0.18

Compare @uirouter/core versions 5.0.17 and 5.0.18

Bug Fixes

相关地址:原始地址 下载(tar) 下载(zip)

查看:2018-05-05发行的版本