Skip to content

Releases: STRML/react-router-component

0.31.4

08 Dec 01:11
4a2b528
Compare
Choose a tag to compare
  • Remove react/lib/batchedUpdates require(), which was causing issues with CDN users.

0.31.3

08 Dec 01:11
3ceb9c0
Compare
Choose a tag to compare
  • Fix import of batchedUpdates (currently ReactDOM.unstable_batchedUpdates) for use with the CDN
    version of React.

0.31.2

08 Dec 01:11
374741d
Compare
Choose a tag to compare
  • Remove an errant 'let' that made its way into the build.

0.31.1

08 Dec 01:11
6709b00
Compare
Choose a tag to compare
  • Bugfix for '#' ignoring.

0.31.0

08 Dec 01:11
3649b96
Compare
Choose a tag to compare
  • Allow returning false from <CaptureClicks>'s onClick handler to completely cancel an anchor navigation.
  • Ignore '#' by default in <CaptureClicks>, unless we're in a hash routing environment.

0.30.1

08 Dec 01:11
1760cab
Compare
Choose a tag to compare
  • Also pass (path, navigation) to onNavigation to match onBeforeNavigation.

0.30.0

08 Dec 01:11
ed268eb
Compare
Choose a tag to compare
  • Support omitting the router's wrapping component entirely by passing a falsy component prop.

0.29.2

08 Dec 01:11
b916a62
Compare
Choose a tag to compare
  • Fix typo in previous commit

0.29.1

08 Dec 01:11
05fe13f
Compare
Choose a tag to compare
  • Minor: Prevent :focus from sticking on clicked anchors under <CaptureClicks>.

0.29.0

08 Dec 01:11
29c820b
Compare
Choose a tag to compare
  • Added optional childProps hash to the Router. If this is specified, these props will be passed to all
    handlers, contextual routers, and their children. Props defined on a handler or Route directly have priority.
    This fixes #104.
  • Possibly Breaking Change/Bugfix:
    • We allow passing an actual element as a handler, not just a component. Previously, props on these
      elements were lost, so that <Location handler={<div className="foo" />} /> would render <div></div>.
      This was unintentional and these inner props are now preserved and have priority over childProps or
      properties defined on the Route.