navgo 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -409,6 +409,8 @@ export default class Navgo {
409
409
  },
410
410
  event: ev_param,
411
411
  })
412
+ this.route.set(this.#current)
413
+
412
414
  // await so that apply_scroll is after potential async work
413
415
  await this.#opts.after_navigate?.(nav)
414
416
 
@@ -424,8 +426,7 @@ export default class Navgo {
424
426
  await this.#opts.tick?.()
425
427
 
426
428
  this.#apply_scroll(nav)
427
- this.route.set(this.#current)
428
- if (nav_id === this.#nav_active) this.is_navigating.set(false)
429
+ this.is_navigating.set(false)
429
430
  }
430
431
 
431
432
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "navgo",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/mustafa0x/navgo.git"