Given this route: <TestPage path="/test/:foo?" />, when transitioning from /test/ to /test/bar (and vice versa) a transition is prevented. This causes TestPage to render with an empty foo param.
The reason for this is that the state of the PageContainer will only be updated when rendering different components (the check is currently nextPage.nodeName !== previousPage.nodeName). The state will not be updated when rendering the same component with different props.
Given this route:
<TestPage path="/test/:foo?" />
, when transitioning from/test/
to/test/bar
(and vice versa) a transition is prevented. This causesTestPage
to render with an emptyfoo
param.The reason for this is that the state of the
PageContainer
will only be updated when rendering different components (the check is currentlynextPage.nodeName !== previousPage.nodeName
). The state will not be updated when rendering the same component with different props.