client/paging: avoid redrawing header navigation

This commit is contained in:
rr-
2016-08-28 18:53:06 +02:00
parent e83e1b06a1
commit cf1d15354d
16 changed files with 263 additions and 164 deletions

View File

@ -137,8 +137,8 @@ class Router {
}
show(path, state, push) {
const oldPath = this.ctx ? this.ctx.path : ctx.path;
const ctx = new Context(path, state);
const oldPath = this.ctx ? this.ctx.path : ctx.path;
this.dispatch(ctx, () => {
if (ctx.path !== oldPath && push !== false) {
ctx.pushState();