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
This is created as an issue as per suggestion by @mc1098 in #2107.
Feel free to move this to discussion if not appropriate.
This issue proposes the following changes to yew-router:
Add a <Redirect<R> to={route} /> component to yew-router that mirrors react-router's <Redirect /> component.
Rename prop route to to for <Link /> so it is consistent with <Redirect />.
Make <Router /> a context provider
Add Location and History that mirrors the behaviour of history package on npm.
Introduce use_history, use_location and use_route hook.
Introduce a RouterScopeExt that provides historylocation and route methods on ctx.link().
I have a custom fork that have some of the changes implemented but that branch also contains changes proposed in #2107.
I will file a PR for this issue after #2107 is settled.
The text was updated successfully, but these errors were encountered:
This is created as an issue as per suggestion by @mc1098 in #2107.
Feel free to move this to discussion if not appropriate.
This issue proposes the following changes to
yew-router
:<Redirect<R> to={route} />
component toyew-router
that mirrorsreact-router
's<Redirect />
component.route
toto
for<Link />
so it is consistent with<Redirect />
.<Router />
a context providerLocation
andHistory
that mirrors the behaviour ofhistory
package onnpm
.use_history
,use_location
anduse_route
hook.RouterScopeExt
that provideshistory
location
androute
methods onctx.link()
.I have a custom fork that have some of the changes implemented but that branch also contains changes proposed in #2107.
I will file a PR for this issue after #2107 is settled.
The text was updated successfully, but these errors were encountered: