@shuvi/router 1.0.39 → 1.0.41

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.
package/esm/router.js CHANGED
@@ -144,7 +144,7 @@ class Router {
144
144
  this._cancleHandler = null;
145
145
  onAbort && onAbort();
146
146
  // fire ready cbs once
147
- if (!this._ready) {
147
+ if (!this._ready && this._current !== START) {
148
148
  this._ready = true;
149
149
  this._readyDefer.resolve();
150
150
  }
package/lib/router.js CHANGED
@@ -147,7 +147,7 @@ class Router {
147
147
  this._cancleHandler = null;
148
148
  onAbort && onAbort();
149
149
  // fire ready cbs once
150
- if (!this._ready) {
150
+ if (!this._ready && this._current !== START) {
151
151
  this._ready = true;
152
152
  this._readyDefer.resolve();
153
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/router",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -28,7 +28,7 @@
28
28
  "node": ">= 16.0.0"
29
29
  },
30
30
  "dependencies": {
31
- "@shuvi/utils": "1.0.39",
31
+ "@shuvi/utils": "1.0.41",
32
32
  "query-string": "6.13.8"
33
33
  }
34
34
  }