inertiax-core 11.0.21 → 11.0.22
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/dist/index.js +4 -4
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1422,7 +1422,7 @@ var CurrentFramePage = class {
|
|
|
1422
1422
|
const location = !isServer3 ? window.location : new URL(page2.url);
|
|
1423
1423
|
const currentFrameUrl = hrefToUrl(this.page?.url ?? page2.url);
|
|
1424
1424
|
const comparisonTarget = updateBrowserUrl ? location : currentFrameUrl;
|
|
1425
|
-
const scrollRegions = !isServer3
|
|
1425
|
+
const scrollRegions = !isServer3 ? Scroll.getScrollRegions() : [];
|
|
1426
1426
|
replace = replace || isSameUrlWithoutHash(hrefToUrl(page2.url), comparisonTarget);
|
|
1427
1427
|
const pageForHistory = { ...page2, flash: {} };
|
|
1428
1428
|
const browserUrl = !isServer3 && !updateBrowserUrl ? window.location.href : page2.url;
|
|
@@ -3271,6 +3271,9 @@ var Router = class {
|
|
|
3271
3271
|
return;
|
|
3272
3272
|
}
|
|
3273
3273
|
this.cancelAll({ prefetch: false });
|
|
3274
|
+
if (!page.isCleared(this.frameId) && isEqual4(page.getWithoutFlashData(this.frameId), data)) {
|
|
3275
|
+
return;
|
|
3276
|
+
}
|
|
3274
3277
|
page.setQuietly(data, { preserveState: this.frameId === DEFAULT_FRAME_ID4 }, this.frameId).then(() => {
|
|
3275
3278
|
Scroll.restore(history.getScrollRegions(), this.frameId);
|
|
3276
3279
|
fireNavigateEvent(page.get(this.frameId));
|
|
@@ -3431,9 +3434,6 @@ var Router = class {
|
|
|
3431
3434
|
if (options.optimistic) {
|
|
3432
3435
|
this.applyOptimisticUpdate(options.optimistic, events);
|
|
3433
3436
|
}
|
|
3434
|
-
if (!page.isCleared(this.frameId) && !visit.preserveUrl) {
|
|
3435
|
-
Scroll.save();
|
|
3436
|
-
}
|
|
3437
3437
|
const requestParams = {
|
|
3438
3438
|
...visit,
|
|
3439
3439
|
...events
|