-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Failing test for <Miss /> with 'Blocker' component #4047
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
426be31
to
6a380c8
Compare
done() | ||
}) | ||
}) | ||
}) | ||
|
||
describe('FAILING MISS TESTS', (done) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
should be an argument to the it
callback, not describe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes good catch, thanks
6a380c8
to
c095332
Compare
alright, I'm digging in on this today |
afaict Miss works fine on master since we added the |
c095332
to
84f5597
Compare
Updated to current v4 master, and test still fails. Same issue with Mentioned in more detail in #4035. |
I know the test fails, but if you click around the examples w/ a |
Try this app adapted from the test. When you navigate directly to import React from 'react'
import { Match, Miss, Link, HashRouter } from 'react-router'
class Blocker extends React.Component {
shouldComponentUpdate() {
return false
}
render() {
return <App />
}
}
const Home = () => (
<Link to='/other'>Other</Link>
)
const NotFound = () => (
<div>
<Link to='/'>Home</Link>
<p>Not Found</p>
</div>
)
const App = () => (
<div>
<Match pattern='/' exactly component={Home} />
<Miss component={NotFound} />
</div>
)
export default () => (
<HashRouter>
<Blocker />
</HashRouter>
); |
84f5597
to
d455ca2
Compare
FWIW this isn't an issue with |
I'm afraid this PR is a bit outdated. |
👍 |
Refers to issue #4035