Closed albertogasparin closed 3 years ago
Couple of new APIs to allow better and future optimisations:
Link
to
params
query
pushTo
replaceTo
Router
initialRoute
Moreover matchRoute result is now cached, so looking for the same location will avoid looping through all route definitions over and over.
matchRoute
TODO:
Couple of new APIs to allow better and future optimisations:
Link
propto
now accepts a route (as object or dynamic import), and will automatically build links usingparams
andquery
additional propspushTo
andreplaceTo
actions to push/replace by providing a route instead of a stringRouter
propinitialRoute
to avoid scanning all routes on initialisationMoreover
matchRoute
result is now cached, so looking for the same location will avoid looping through all route definitions over and over.TODO: