You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//URL Address Bar: localhost/foo/barconstFoo=({pathname})=>(<div>
Foo
<Matchpattern={`${pathname}\bar`}component={Bar}/></div>)constBar=({pathname})=>(<div>
Bar
<Linkto='../'>Go Back</Link></div>)
Expected Behavior
Upon Clicking on the <Link to='../'>Go Back</Link>:
must go to localhost/foo.
Rendered Component should change
Actual Behavior
Upon Clicking on the Link:
goes to localhost/foo.
Rendered Component should change. Current component gets unmounted but new component is not rendered
The text was updated successfully, but these errors were encountered:
These are really tricky to make work since it's relative to current match, not the actual url, @mjackson has some PoC code on his machine for this, but it's a tricky problem. For now you could take props.pathname or props.pattern, which is relative to the current matched component, and build the url with a path utility.
lockbot
locked as resolved and limited conversation to collaborators
Jan 21, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
v4.0.0-alpha.3
Expected Behavior
Upon Clicking on the
<Link to='../'>Go Back</Link>
:localhost/foo
.Actual Behavior
Upon Clicking on the
Link
:localhost/foo
.Rendered Component should change. Current component gets unmounted but new component is not renderedThe text was updated successfully, but these errors were encountered: