@inertiajs/core 2.3.6 → 2.3.7
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.esm.js +4 -0
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +4 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/types/types.d.ts +6 -4
package/dist/index.esm.js
CHANGED
|
@@ -1116,6 +1116,10 @@ var History = class {
|
|
|
1116
1116
|
return window.history.state?.documentScrollPosition || { top: 0, left: 0 };
|
|
1117
1117
|
}
|
|
1118
1118
|
replaceState(page2, cb = null) {
|
|
1119
|
+
if (isEqual(this.current, page2)) {
|
|
1120
|
+
cb && cb();
|
|
1121
|
+
return;
|
|
1122
|
+
}
|
|
1119
1123
|
page.merge(page2);
|
|
1120
1124
|
if (isServer) {
|
|
1121
1125
|
return;
|