preact-router icon indicating copy to clipboard operation
preact-router copied to clipboard

Skip prop-passing if route is a DOM element (fixes #226)

Open developit opened this issue 8 years ago • 1 comments
trafficstars

This fixes the following issue:

let div = render(
  <Router url="/?matches=hello">
    <div />
  </Router>
);

div.matches  // "hello" - should be DOM match() method

developit avatar Sep 08 '17 22:09 developit

Note to self: tests need to be updated to only use components as children, and to test that elements as children do not receive router props.

developit avatar Sep 08 '17 23:09 developit