Skip to content

0.29.0

Compare
Choose a tag to compare
@STRML STRML released this 08 Dec 01:11
· 94 commits to master since this release
29c820b
  • 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.