DescriptionMD History: Replace app-route with a custom router
app-route is a fairly heavy-weight element, supporting complex routing
patterns designed for large pages. This is unnecessary for MD History,
which currently has one routing pattern and one query parameter.
This CL replaces app-route with a custom router, <history-router>, which
is responsible for two-way binding between the page state and the page
URL. This also refactors handling of search terms elsewhere in the app
to ensure that changes to the search term are reflected correctly across
the page.
This CL has a small positive impact on load time (~20ms on a Z620), code
health (all routing is handled in one place) and binary size (app-route
can be deleted from the binary).
BUG=629710
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/73e5d0ee1756905fbb7d9ca932394735ac2a2f67
Cr-Commit-Position: refs/heads/master@{#420590}
Patch Set 1 #Patch Set 2 : Rebase, cleanup #Patch Set 3 : More minor cleanup #
Total comments: 15
Patch Set 4 : Rebase #Patch Set 5 : calamity@ review #Patch Set 6 : More calamity@ review #Patch Set 7 : Rebase #
Total comments: 2
Patch Set 8 : Delete stray newline #Messages
Total messages: 33 (23 generated)
|