Bug report
Describe the bug
if we have the next tree of components:
<ComponentWithShouldComponentUpdate> <ComponentWithRouter /> </ComponentWithShouldComponentUpdate>
where ComponentWithShouldComponentUpdate has shouldComponentUpdate which in some cases returns false then ComponentWithRouter doesn't update its context and so ComponentWithRouter has stale router prop :( .
To Reproduce
just render the tree described above
Expected behavior
router prop should be up to date.
Screenshots
no screenshots provided
System information
- OS: should not depend on OS
- Browser: should not depend on Browser
- Version of Next.js: [e.g. 7.0.1]
Additional context
no additional context