🚃  A fresh react router designed for flexible route transitions
Patch for default props deprecated warning
Re implement getPaused and setPaused because history block API don't keep the last URL pushed in history.
remove getPaused
and setPaused
because history block API can do it. #149
props route returns queryParams & hash #153
export type TRouteProps = {
params?: TParams
queryParams?: TQueryParams
hash?: string
[x: string]: any
}
Fix sub-router createUrl
#154
When with createUrl
of a sub-router, from a sub-router, the URL wasn't build properly on the server-side. This cause a diff of render between server and client.
To resolve this issue we need to:
createUrl()
function: internalize all the getUrlByRouteName
logicgetUrlByRouteName()
& getFullPathByPath()
compileUrl()
, use path-to-regexp compile
insteadFix getStaticProps
cache key #140
Update all dependencies to their last version #139
#138
/?foo=bar
match with route with path /
/?foo=bar#my-hash
match with route with path /
/bar?foo=bar#my-hash
match with route with path /bar
currentRoute have to return these properties:
{
path: "/",
queryParams: { "foo": "bar" }
hash: "my-hash"
}
<Link>
component to props (TOpenRouteParams
) can take queryParams
& hash
properties<Link to={{ name: "Home", queryParams:{"foo": "bar", "zoo": "hello"}, hash: "my-hash" }}>...</Link>
// will create the URL -> /?foo=bar&zoo=hello#my-hash
fixes #137